Saturday, June 15, 2019

[google-cloud-sql-discuss] Unable to connect from GKE to Cloud SQL via private IP

Hello guys,

It's already been two days I am trying to connect my pods in GKE to cloud sql using private ip. I have a default project VPC which is peered successfully with cloud sql vpc. Also cloud sql instance is in same region as my cluster is in. Looking into cloud sql logs, pods are trying to connect to cloud sql, however getting "Aborted Connection" issue. I have also confirmed that its not credentials issue. Also have implemented connection pools to size 10, connectionTimeout to 2 minutes, idletimeouts, lifetime, everything. Seems like everything is in place, but can't figure out the problem. Also deployed an ubuntu pod, ssh it, and tested to connection to cloud sql. With telnet, I can connect to private ip in 3306 port. However, the weird thing is I can't ping to private ip, nor mysql client can be connect. This deployed pod is in same cluster using same peered vpc. Any other troubleshooting methods would be really helpful guys.

Thanks

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/a680e13b-97a3-400c-bae2-68a8e4942a54%40googlegroups.com.

No comments:

Post a Comment