package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Deprecated 1.9 - This group version of Network_policy_egress_rule is deprecated by networking/v1/network_policy_egress_rule. Network_policy_egress_rule describes a particular set of traffic that is allowed out of pods matched by a Network_policy_spec's pod_selector. The traffic must match both ports and to. This type is beta_level in 1.8

type t
val to_yojson : t -> Yojson.Safe.t

List of destination ports for outgoing traffic. Each item in this list is combined using a logical Or. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.

List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical Or operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.

module Object : Object.S with type value := t
OCaml

Innovation. Community. Security.