Thursday, December 5, 2019

[google-cloud-sql-discuss] Re: Connect to Cloud SQL from within another pod using cloud proxy

Hello,


As a starting point, I would review the official documentation about connecting to Cloud SQL from Kubernetes Engine using the Cloud SQL Proxy Docker image if you haven't since there are some requirements that your GKE cluster needs to meet such as:


Must be running version 1.2 or higher, with the kubectl command-line tool installed and configured to communicate with the cluster.

Having an application container in a pod on the GKE cluster.


In the Cloud SQL side:

The Cloud SQL Admin API is enabled.

You must know the location of the key file associated with a service account with the proper privileges for your Cloud SQL instance.


This is only the most important requirements that I see could cause such error for the complete requirements you can review the document shared above.


You can also follow the connection overview part of the documentation where you can see a properly configured pod configuration file as I see you are using 0.0.0.0:3306 on your connection strong but can't see your pod configuration file.


If after reviewing the documentation shared above and making sure that the requirements are fulfilled, you have not been able to connect to your Cloud SQL instance, you can create an Issue Tracker and we may be able to investigate further.

--
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/aa412a44-e66b-48a7-8f60-e24aa1f88243%40googlegroups.com.

No comments:

Post a Comment