A policy should restrict only egress and leave ingress unspecified intentionally. What must be set so egress rules are honored as intended?
Select an answer to reveal the explanation.
Short Explanation
policyTypes is the label on the jar that says what's inside—if you mean egress, list Egress. Don't hide egress rules under an Ingress-only jar or on Service externalIPs.
Full Explanation
NetworkPolicy.policyTypes declares whether Ingress, Egress, or both are governed. For egress-only intent, include Egress in policyTypes and supply egress rules. Omitting Egress from policyTypes or placing CIDRs on Service externalIPs will not correctly apply egress NetworkPolicy behavior.