class K8S::Api::Networking::V1::NetworkPolicyIngressRule
- K8S::Api::Networking::V1::NetworkPolicyIngressRule
- Reference
- Object
Overview
NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.20/api/networking/v1/network_policy_ingress_rule.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, from : Array? = nil, ports : Array? = nil)
Instance Method Summary
- #from : Array(Api::Networking::V1::NetworkPolicyPeer)?
- #from=(from : Array(Api::Networking::V1::NetworkPolicyPeer)?)
- #ports : Array(Api::Networking::V1::NetworkPolicyPort)?
- #ports=(ports : Array(Api::Networking::V1::NetworkPolicyPort)?)