Replies: 1 comment
-
I ran into the same issue. After restarting prometheus the network policies were properly applied. What I imagine is that prometheus keeps connections open and the network policy might only apply to new connections. This is just a guess... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
ServiceMonitor
in place. Works great. I added the following to the namespace that has thePod
s being monitored:When I try to access the metrics endpoint from any
Pod
in the cluster, the connection times out as expected, EXCEPT the prometheusPod
s are still able to scrape metrics and I can't figure out why. There's noNetworkPolicy
allowing prometheus to hit those pods. What am I missing? Kubernetes is AKS using the Calico CNI.Beta Was this translation helpful? Give feedback.
All reactions