-
Hi! I use such or similar NetworkPolicies per namespace:
I also found that probes start to work if I update ingress rules to allow all the traffic in this way:
But I would like to explicitly allow ingress traffic. My current istio components version is 1.22.1, but I faced the same issue with probes in ambient mode on version 1.21.2.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
In ambient, traffic is tunneled over port 15008. This causes the netpol to see all traffic as coming in/out on port 15008. However, this doesn't seem to be the case for what you are seeing. I wouldn't expect health checks to be impacted by networkpolicies at all, regardless of Istio. What network policy implementation are you using? One other possibility is the health check is not denied by netpol, but the app is not being marked as healthy due to other reasons (like, perhaps, Istio blocking some traffic it needs to mark itself as ready)? inside the pod does |
Beta Was this translation helpful? Give feedback.
-
@alex-k27 - similar to Cilium, if you create an 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 This should be better documented, and testing CNI and NetPol interactions directly in our integ suite is something we have long needed, but have not added. |
Beta Was this translation helpful? Give feedback.
@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 ip169.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…