Hailu Meng:
One verification on the network policy: when we create network policy in a namespace, that indicates the policy will apply to the pods selected by podselector in the namespace where the network policy belongs to, right?
Hailu Meng:
Just read the doc one more time, I think the understanding above is correct.
Vitor Jr.:
You’re correct.
Vitor Jr.:
podSelector: Each NetworkPolicy includes a podSelector
which selects the grouping of pods to which the policy applies. The example policy selects pods with the label “role=db”. An empty podSelector
selects all pods in the namespace.
Hailu Meng:
Thank you sir