Reputation: 727
Our application is running in GKE and I am using Cloud Proxy as a sidecar to connect to the database. After new release one pod shown up 2 restart when I check the container restart was for cloud-sqlproxy container.
When I looked into logs then found an error
"textPayload": "\tGet "https://sqladmin.googleapis.com/sql/v1beta4/projects/GCP_PROJECT_NAME/instances/europe-west2~SQL_INSTANCE_NAME/connectSettings?alt=json&prettyPrint=false": dial tcp: lookup sqladmin.googleapis.com: i/o timeout"
I guess Cloud SQL proxy tried to set up connection with DB using API that is sqladmin.googleapis.com
but it ran into timeout.
I am looking for information on how I can force a cloud-sqlproxy sidecar to retry connection in case of timeout.
Upvotes: 0
Views: 211