class K8S::Api::Networking::V1::NetworkPolicyEgressRule
- K8S::Api::Networking::V1::NetworkPolicyEgressRule
- Reference
- Object
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
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.18/api/networking/v1/network_policy_egress_rule.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, ports : Array(Api::Networking::V1::NetworkPolicyPort)? = nil, to : Array(Api::Networking::V1::NetworkPolicyPeer)? = 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 Detail
def self.new(*, ports : Array(Api::Networking::V1::NetworkPolicyPort)? = nil, to : Array(Api::Networking::V1::NetworkPolicyPeer)? = nil)
#