Friday, March 9, 2018

[google-cloud-sql-discuss] Cloud SQL Proxy hangs Kubernetes CronJob

Hello,

Has anyone run into issues when using the Cloud SQL Proxy inside a Kubernetes CronJob?

I'm using the SQL proxy inside other Kubernetes Deployments connected according to this guide: https://cloud.google.com/sql/docs/postgres/connect-kubernetes-engine - and this works fine.

However when I try to set up a CronJob with the same configuration for allowing my container to connect to Cloud SQL via the proxy, the cron job never finishes/completes and never triggers again. I have run my CronJob container without the Cloud SQL proxy container attached, and it completes correctly and gets rescheduled.

Any pointers on what could be done to safely close the Cloud SQL Proxy container once my job is complete?

Thanks!

--
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/bc975b44-e31c-4d47-a298-fb5ec7750a0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment