grafana dashboard is not working with nginx ingress controller

Viewed 88

I have deploy kube-prometheus-stack on my eks cluster. Nginx ingress controller is configured with NLB. I am teminating SSL at NLB. I am trying to expose grafana on subdomain with nginx ingress. When i open subdomain nginx ingress is showing 504 error response.

I'm using this helmchart

k8s verison -> 1.22

values.yaml

grafana:
  ingress:
    enabled: true
    ingressClassName: tf-test
    hosts: 
       - my-dashboard.example.com
    path: /
1 Answers

i had the same issue, it turns out in the grafana value part, there is an extra path like this

      extraPaths:
        - path: "/"
          pathType: Prefix
          backend:
            service:
              name: ssl-redirect
              port:
                name: use-annotation

that ssl-redirect service does not exist. it works me by just removing it.
Related