Update network-policies.md (#17335)
* Update network-policies.md Add explanation of policy evaluation order from https://github.com/kubernetes/kubernetes/issues/75435 * edit text in network-policies.md
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
24edeac0b4
commit
445020674e
@@ -28,6 +28,8 @@ By default, pods are non-isolated; they accept traffic from any source.
|
||||
|
||||
Pods become isolated by having a NetworkPolicy that selects them. Once there is any NetworkPolicy in a namespace selecting a particular pod, that pod will reject any connections that are not allowed by any NetworkPolicy. (Other pods in the namespace that are not selected by any NetworkPolicy will continue to accept all traffic.)
|
||||
|
||||
Network policies do not conflict, they are additive. If any policy or policies select a pod, the pod is restricted to what is allowed by the union of those policies' ingress/egress rules. Thus, order of evaluation does not affect the policy result.
|
||||
|
||||
## The `NetworkPolicy` Resource
|
||||
|
||||
See the [NetworkPolicy](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#networkpolicy-v1-networking-k8s-io) for a full definition of the resource.
|
||||
|
||||
Reference in New Issue
Block a user