502 bad gateway when exposing Grafana through ingress on 0.11 #1872
-
Hi all! I've recently upgraded from 0.10 to 0.11. On 0.10, I had created an ingress to make If I change the Whatever I do, each service seems to be finding the pods fine; they show up in the Some debugging later, I have discovered that the
Editing just one of those labels will remove the 502, and adding those three labels to any test pods will also immediately cause a 502. This makes me think that I am either misunderstanding kube-prometheus in some way, or missing a piece of knowledge in kubernetes - both entirely possible, but I'd like to have some external opinions. So - is there something I'm missing? Versions:
Repro instructionsTo ensure I wasn't going crazy, I've recreated a basic k3s cluster to test these changes in isolation. I ran:
I've tried this with both 0.10, and 0.11. It works on 0.10, not on 0.11. ingress.yaml
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ah, I figured it out. kube-prometheus sets up a |
Beta Was this translation helpful? Give feedback.
Ah, I figured it out.
kube-prometheus sets up a
NetworkPolicy
which stops the ingress from working.Editing the policy to remove this restriction fixed my issue.