Open araufdogan opened 2 years ago
@araufdogan You could set the grafana service to create AWS ELB and should expose a port for HTTPS. like this,
grafana:
service:
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*'
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: 'arn:aws:acm:....'
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: '443'
type: LoadBalancer
extraExposePorts:
- name: https
port: 443
targetPort: 3000
I hope this comments you a little. (my snippets : https://gist.github.com/oflouis/421443c6d5b608f80d291171452a41d5)
##
################################################################################################################
service:
enabled: true
type: LoadBalancer
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:eu-west-2:851465799644:certificate/f1"
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"
service.beta.kubernetes.io/aws-load-balancer-ssl-protocol: "HTTPS"
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
service.beta.kubernetes.io/aws-load-balancer-security-groups: "sg-0bxxxxx"
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: "grafana-service=true"
service.beta.kubernetes.io/aws-load-balancer-healthcheck-protocol: "tcp"
labels: {}
ports:
- name: http
port: 80
targetPort: 3000
protocol: TCP
- name: https
port: 443
targetPort: 3000
protocol: TCP
extraExposePorts:
- name: https
port: 443
targetPort: 3000
healthCheck:
path: "/" # Health check path for ALB to monitor Grafana health
intervalSeconds: 10
timeoutSeconds: 5
unhealthyThresholdCount: 6
healthyThresholdCount: 2
externalTrafficPolicy: Cluster # Use Cluster to preserve client source IP
This worked for me. Hopefully, it will be helpful to someone.
Hello,
I'm trying to install grafana with https mode but ingress annotations not working. My values.yaml file is;
I'm installing grafana with the command;
helm install grafana grafana/grafana --namespace grafana -f values.yaml
It creates elb but there is no https configuration and whitelist-source-range. Where do I'm wrong?
Thank you.