How to troubleshoot issue on OSX coming back from sleep, can't connect to local Postgres

Sometimes, after bringing back my development laptop from sleep, I can’t connect to my local postgres dokcer runningin K8s, while connecting through istio.
Deleting the pod (and it being auto recreated) doesn’t help - this includes auto recreated side cart.
After some time (maybe 30 minutes) it starts working again…
How do I troubleshoot this?