I am trying to connect to a postgres server using psql in a pod in Kubernetes cluster that has istio-proxy as a sidecar container. I keep getting unhealthy upstream error in the logs that prevents me from connecting to the server.
If I do the same thing in a pod without istio-proxy sidecar, things would work and I am able to connect to the postgres server
[2019-09-19T19:41:01.754Z] "- - -" 0 UH "-" 0 0 0 - "-" "-" "-" "-" "-" - - 13.66.226.202:5432 10.244.38.68:36886 -
[2019-09-19T19:41:06.278Z] "- - -" 0 UH "-" 0 0 0 - "-" "-" "-" "-" "-" - - 13.66.226.202:5432 10.244.38.68:37002 -
[2019-09-19T19:41:07.331Z] "- - -" 0 UH "-" 0 0 0 - "-" "-" "-" "-" "-" - - 13.66.226.202:5432 10.244.38.68:37030 -