Unable to connect from GKE to Cloud SQL via private IP

瀏覽次數:50 次
跳到第一則未讀訊息

Mani Rai

未讀,
2019年6月17日 上午9:22:072019/6/17
收件者:Google Cloud SQL discuss
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

Nicolas (Google Cloud Platform Support)

未讀,
2019年6月17日 上午11:35:522019/6/17
收件者:Google Cloud SQL discuss
Hi Mani,
 
Thank you for your report.
 
 
I can see this is a duplicate of another post which has been answered. Please direct any further posts related to this matter to the more active thread. 
回覆所有人
回覆作者
轉寄
0 則新訊息