class Pyrite::Api::Networking::V1::NetworkPolicyEgressRule
Overview
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8
Defined in:
versions/v1.14/api/networking/v1/network_policy_egress_rule.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector.
-
.new(pull : JSON::PullParser)
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector.
- .new(*, ports : Array? = nil, to : Array? = nil)
Instance Method Summary
- #ports : Array(Api::Networking::V1::NetworkPolicyPort)?
- #ports=(ports : Array(Api::Networking::V1::NetworkPolicyPort)?)
- #to : Array(Api::Networking::V1::NetworkPolicyPeer)?
- #to=(to : Array(Api::Networking::V1::NetworkPolicyPeer)?)
Constructor methods inherited from class Pyrite::Kubernetes::Spec
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8