mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 05:44:06 -06:00
616 B
616 B
By default all pods can communicate with each other.
If you apply a policy rule, ONLY that traffic is allowed.
In this image, they are two separate rules because they are two arrays.
The second to: applies to the same namespace because no namespaceSelector is given here.
Multiple Network Policies
If you have multiple network policies targeting the same pods:
- The order does not matter
- Policies will be merged
Alleviating confusion about the to field in network policies
Links:
Kubernetes networking-computers part of:: CKS
202403241249
