Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Connecting from a process running in GKE cluster to postgresql (Cloudsql)

hello,

I am trying to connect from my GKE cluster to postgresql instance (cloudsql) and i am getting this error.

 

Creating database xxxxx on companyname@10.XX.XX.XX:5432 psql: could not connect to server: Operation timed out Is the server running on host "10.XX.XX.XX" and accepting TCP/IP connections on port 5432?

 

Any suggestion on why this is?

0 3 440