Kazan v0.11.0 Kazan.Apis.Networking.V1.NetworkPolicyPeer View Source

NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed

OpenAPI Definition: io.k8s.api.networking.v1.NetworkPolicyPeer

Properties

If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.

If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy’s own Namespace.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Kazan.Apis.Networking.V1.NetworkPolicyPeer{
  ip_block: Kazan.Apis.Networking.V1.IPBlock.t(),
  namespace_selector: Kazan.Models.Apimachinery.Meta.V1.LabelSelector.t(),
  pod_selector: Kazan.Models.Apimachinery.Meta.V1.LabelSelector.t()
}