title: GKE pod connectivity to Cloud SQL
body: <p>Please enlighten me. </p>
  
  <p><strong>Current Setup:</strong> Docker container running inside the VM instance - The docker container can connect to our Cloud SQL with all the credentials included in the property file during the building of docker image</p>
  
  <p><strong>Future Setup:</strong> I deployed this container as a pod on my GKE but it couldn't connect to my Cloud SQL. I am just confused, Do I still need to do an extra step like the guide below before I can establish a connection to my Cloud SQL DBs?</p>
  
  <p><a href="https://cloud.google.com/sql/docs/mysql/connect-kubernetes-engine" rel="nofollow noreferrer">https://cloud.google.com/sql/docs/mysql/connect-kubernetes-engine</a></p>
  
  <p>Since the property file where all the DB credentials where package together during the building process of an image, I should be able to connect to Cloud SQL DBs from GKE pod right?</p>
  
  <p>====</p>
  
  <pre><code>kubectl logs -f appds-d599f75d4-wn9x6
  
  Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up
  </code></pre>