Skip to content

DebuggingΒΆ

When issues arise with your Cloud SQL instance, you can use the following steps to troubleshoot the problem.

Some times your application may look fine and work fine, but some update to the SQLInstance has not been properly applied. In these situations, inspecting the resources may reveal update problems. If there is a problem with updating the SQLInstance, no changes will be applied until the problem is resolved.

Check the events and status on the Config Connector resourcesΒΆ

$ kubectl describe sqlinstance -lapp=<myapp>
$ kubectl describe sqldatabase -lapp=<myapp>
$ kubectl describe sqluser -lapp=<myapp>
$ kubectl describe sqlsslcert -lapp=<myapp>

Check the logs of the Cloud SQL Proxy (if instance uses cloudsql-proxy)ΒΆ

$ kubectl logs <pod> -c cloudsql-proxy