简体   繁体   中英

GCP MySQL with private IP not reachable from GKE

I have a mysql instance running with private IP enabled. When I try to connect using mysql-client from GKE container I get connection timeouts.

But mysql-client from VM instances is able to reach the server.

I verified that MySQL, VM instance, GKE all running with default network in same zone.

原来应该在GKE上启用Alias IP,以使用私有IP访问SQL。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM