Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect to Google Cloud SQL via VPC?

I'm having two Projects in GCP with Cloud SQL & GKE

Project A
  -> Cloud SQL
Project B
  -> GKE Cluster

Now I want to access Cloud SQL from GKE Cluster for which I have two options.

 1. IPv4 address to connect
 2. Clous SQL Proxy as sidecar

But the problem is both of them connects via Public IP. And I'm worried about latency so I was thinking can we access via VPC ? or some kind of internal network ? so the read/write will be more faster.

like image 751
Siva Avatar asked Oct 17 '25 16:10

Siva


1 Answers

Cloud SQL now supports private connections: https://cloud.google.com/sql/docs/mysql/private-ip

like image 159
Brett H. Avatar answered Oct 21 '25 02:10

Brett H.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!