Egress from a payment Pod must be denied except DNS and one external payment gateway IP. What NetworkPolicy pattern fits?
Select an answer to reveal the explanation.
Short Explanation
Egress default-deny is a locked outbound mail slot: poke holes only for DNS and that payment IP via ipBlock. Ingress-only policies, ExternalName Services, and privileged mode don't carve those holes correctly.
Full Explanation
Egress NetworkPolicies can default-deny outbound traffic and explicitly allow required destinations such as cluster DNS and an external ipBlock for a payment gateway. Ingress-only policies do not constrain egress. Service types and privileged containers do not implement egress allowlists.