Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 1.42 KB

V1beta1NetworkPolicySpec.md

File metadata and controls

11 lines (7 loc) · 1.42 KB

V1beta1NetworkPolicySpec

Properties

Name Type Description Notes
ingress list[V1beta1NetworkPolicyIngressRule] List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list. [optional]
pod_selector V1LabelSelector Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.

[Back to Model list] [Back to API list] [Back to README]