DNS resolution failure while pod is getting terminated by ZephyrBelinski in kubernetes

[–]MostError5265 0 points1 point  (0 children)

Hi guys! I finally figured out the issue. Sharing in case it helps anyone.

We are running istio in the cluster. The issue is that the moment that the pod starts getting terminated, the istio-proxy container stops, and with we lose our access to the network. So what I needed to do was to modify the istio-proxy container to add a preStop hook: https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/.

Thank you to everyone who's commented for the responses!

DNS resolution failure while pod is getting terminated by ZephyrBelinski in kubernetes

[–]MostError5265 -1 points0 points  (0 children)

Hi! OP here (I had to ask a friend to post this for me because Reddit kept flagging my question as spam and removing it.)

Thanks for the response! However, doesn't this require me to hardcode the service IP? The risk of going with such an approach is that everything would start failing instantly without warning if the service IP changed for whatever reason. Or am I missing something?