NetworkPolicy doesn't match labels as expected. #11027
Unanswered
CherrySuryp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello K3S community!
I encountered an issue with NetworkPolicy configuration.
I'm trying to understand if it's my error or something wrong with cluster itself so thanks in advance for your help!
K3s Version:
Node(s) CPU architecture, OS, and Version:
Description:
I'm trying to configure Network Policy so app can access specific pods from any namespaces.
I wrote this configuration that should work following kubernetes documentation but it doesn't.
I'm 100% sure that pods with presented labels are exist.
Moreover I also tried this configuration just to make sure that policies are working properly. And yeah! It is working as expected.
After it I tried configuring NetworkPolicy to allow access to one specific namespace with following yaml and it is not working also
So here's a question - maybe something wrong with matching mechanism or something like that? I double checked everything and it seems to me that something's not working as expected
Beta Was this translation helpful? Give feedback.
All reactions