HTTPS/TLS Setup :: Kloudfuse Docs
HTTPS/TLS Setup
The Kloudfuse Helm chart supports two options for setting up HTTPS/TLS:
| If you enable TLS, you must update Grafana settings for alerts. See Grafana Configuration with TLS. |
HTTPS Configuration
Prerequisites
A DNS name.
A static external IP address, associated with the DNS host name
- GKE
- AWS
Reserve a static external IP.
See Google documentation on how to Configure static external IP addresses.
Allocate IP addresses from AWS Elastic IP.
See AWS documentation on Elastic IP addresses.
- A certificate, either a new SSL certificate created as part of Kloudfuse installation, or an existing SSL certificate.
New Certificate
If the SSL certificate is created as part of Kloudfuse installation, then cert-manager using lets-encrypt creates the Certificate. Ihe cert-manager must be installed already in the Kubernetes cluster. See cert-manager documentation on Installation.
Create certificate during install
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager --create-namespace --namespace kfuse --version v1.7.1 --set installCRDs=true
Existing Certificate
Create a Kubernetes secret of type TLS, with server.crt and server.key files (SSL certificates).
Use an existing certificate
kubectl create secret tls kfuse-tls --namespace kfuse --key server.key --cert server.crt
Configure Helm Values
Depending on the cloud provider, ingress type, and certificate method, add the following entries in the custom_values.yaml file:
For migrating from ingress-nginx to Envoy Gateway, see Configure Envoy Ingress.
- Envoy Gateway — GCP, New Certificate
- Envoy Gateway — GCP, Existing Certificate
- Envoy Gateway — AWS, New Certificate
- ingress-nginx — GCP, New Certificate
- ingress-nginx — GCP, Existing Certificate
tls:
enabled: true
host: <REPLACE DNS HOST HERE>
email: <REPLACE EMAIL>
clusterIssuer: <PROVIDE A CLUSTER ISSUER NAME>
envoy-gateway:
enabled: true
installGatewayRoutes: true
envoyService:
patch:
loadBalancerIP: <REPLACE PRE-ALLOCATED STATIC IP HERE>
external:
enabled: true
ingress-nginx:
enabled: false
installIngressRules: false
tls:
enabled: true
host: <REPLACE DNS HOST HERE>
secretName: <PROVIDE secret name containing SSL certificate, such as kfuse-tls> (1)
envoy-gateway:
enabled: true
installGatewayRoutes: true
envoyService:
patch:
loadBalancerIP: <REPLACE PRE-ALLOCATED STATIC IP HERE>
external:
enabled: true
ingress-nginx:
enabled: false
installIngressRules: false
| 1 | secretName created in Use an existing certificate. |
tls:
enabled: true
host: <REPLACE DNS HOST HERE>
email: <REPLACE EMAIL>
clusterIssuer: <PROVIDE A CLUSTER ISSUER NAME>
envoy-gateway:
enabled: true
installGatewayRoutes: true
envoyService:
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
service.beta.kubernetes.io/aws-load-balancer-eip-allocations: <REPLACE EIP ALLOC IDS>
patch:
externalTrafficPolicy: Local
external:
enabled: true
ingress-nginx:
enabled: false
installIngressRules: false
tls:
enabled: true
host: <REPLACE DNS HOST HERE>
email: <REPLACE EMAIL>
clusterIssuer: <PROVIDE A CLUSTER ISSUER NAME. ensure that this is unique within the cluster>
ingress-nginx:
controller:
ingressClassResource:
enabled: true
name: kfuse-ingress
ingressClass: kfuse-ingress
watchIngressWithoutClass: false
service:
loadBalancerIP: <REPLACE PRE-ALLOCATED STATIC IP HERE>
external:
enabled: true
Disable HTTP Traffic
1. This step disables HTTP traffic on both internal and external ingress. Use the following if you plan to disable HTTP and not use internal ingress.2. You must enable http traffic for letsencrypt to generate certificate during installation.3. Use either an externally-provided certificate (acm, and so on), or disable http traffic after generating a tls certificate. |
If you plan to disable HTTP traffic completely:
- Envoy Gateway
- ingress-nginx
envoy-gateway:
enableHttp: false
ingress-nginx:
controller:
service:
enableHttp: false
TLS Termination
You can configure the Kloudfuse stack to work on clusters that have TLS Termination, such as OKTA and AWS ACM.
Minimal Configuration
| Skip to Configure TLS Termination on AWS NLB Using AWS Certificate Manager for detailed instructions on AWS Certificate Manager and AWS NLB for TLS termination. |
Add the following entries to the custom_values.yaml file:
- Envoy Gateway
- ingress-nginx
With Envoy Gateway, TLS termination at the load balancer (e.g., AWS ACM) is configured via the tls.awsAcmEnabled flag and envoy service annotations:
tls:
enabled: false
awsAcmEnabled: true
host: <REPLACE DNS HOST HERE>
envoy-gateway:
enabled: true
installGatewayRoutes: true
envoyService:
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: <ACM_CERTIFICATE_ARN>
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
external:
enabled: true
ingress-nginx:
enabled: false
installIngressRules: false
When tls.awsAcmEnabled is true, the Gateway listener uses protocol HTTP on port 443 so Envoy handles it natively. No targetPorts override is needed (unlike ingress-nginx). |
To configure separate internal (ingest) and external (query) hosts with Envoy Gateway, use the symmetric tls.internalIngest and tls.externalQuery fields:
tls:
enabled: false
awsAcmEnabled: true
host: <REPLACE DNS HOST HERE>
internalIngest:
hosts:
- <INTERNAL INGEST DNS HOST>
secretName: ""
hostOnly: false
externalQuery:
hosts:
- <EXTERNAL QUERY DNS HOST>
secretName: ""
hostOnly: false
envoy-gateway:
enabled: true
installGatewayRoutes: true
envoyService:
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: <ACM_CERTIFICATE_ARN>
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
external:
enabled: true
internal:
enabled: true
annotations:
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
ingress-nginx:
enabled: false
installIngressRules: false
| Field | Description |
|---|---|
tls.internalIngest.hosts |
List of DNS hostnames for internal ingestion routes. |
tls.internalIngest.secretName |
Kubernetes TLS secret for the ingest hosts (leave empty for ACM termination). |
tls.internalIngest.hostOnly |
If true, ingest routes only match internalIngest.hosts and exclude tls.host. |
tls.externalQuery.hosts |
List of DNS hostnames for external query/browser routes. |
tls.externalQuery.secretName |
Kubernetes TLS secret for the query hosts (leave empty for ACM termination). |
tls.externalQuery.hostOnly |
If true, query routes only match externalQuery.hosts and exclude tls.host. |
Update the third-party service that performs TLS Termination
You must configure the internal load balancer to send agent data over an internal network.
Update the certificate for the external load balancer to ensure it contains the domain name for the internal load balancer, then update DNS entries as required.
ACM only allows wildcard subdomains, such as *.domain.com, or sibling domains, such as internal.domain.com. For example, if observability.domain.com hosts the Kloudfuse stack, you can route internal traffic to internal.observability.domain.com. The certificate can cover both domain names.
After provisioning the ACM certificate, update the custom-values.yaml file’s ingress section for the internal controller.
Internal load balancer configuration in custom-values.yaml
ingress-nginx:
controller:
service:
annotations:
# ... see external annotations above
external:
enabled: true
internal:
enabled: true
annotations:
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
service.beta.kubernetes.io/aws-load-balancer-type: nlb
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "<REPLACE AWS ACM CERTIFICATE ARN HERE>"
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
targetPorts:
https: http