Blocking egress to specific domains from an EKS cluster - what are the options?
A seemingly simple requirement: “pods in our EKS cluster must not be able to talk to evil-domain.com”
(or the reverse - “must only be able to talk to an allowlist of domains”). Simple to say, surprisingly
annoying to implement, because classic AWS network controls - security groups, NACLs - speak IP, not DNS.
A domain can resolve to hundreds of rotating IPs behind a CDN, so blocking by IP is a losing game.
Here is a rundown of the options that actually work with FQDNs, and what each one really gives you.