Skip to content

AWS EKS: Healthcheck probes don't work in ambient mode with enabled NetworkPolicy #51588

Answered by bleggett
alex-k27 asked this question in Q&A
Discussion options

You must be logged in to vote

@alex-k27 - similar to Cilium, if you create an ingress allowlist NetPol, your CNI (which enforces NetPol) will not know to ignore host-level healthchecks on the SNAT IP we use (169.254.7.127/32), and will block it.

The "allow" block you have for ingress doesn't consider host-level traffic and in general CNIs perform sleight-of-hand here usually, to silently exempt "some" host traffic from NetPol enforcement. But AWS EKS doesn't know to exempt host traffic with our SNAT IP, so it blocks it (I suspect, anyway).

You will need to allowFrom the ip 169.254.7.127/32 for every workload where you want host-node healthchecks to bypass your default-deny NetPol, and I suspect you should be good.

Thi…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@alex-k27
Comment options

@howardjohn
Comment options

Comment options

You must be logged in to vote
5 replies
@alex-k27
Comment options

@waynewong-ascenda
Comment options

@waynewong-ascenda
Comment options

@bleggett
Comment options

@waynewong-ascenda
Comment options

Answer selected by alex-k27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants