Let's say, for discussion's sake, that I am creating a rails app in GKE. To access the database, I will need to run a cloud sql proxy (https://github.com/GoogleCloudPlatform/cloudsql-proxy/blob/master/Kubernetes.md). Now, I could either run this as a sidecar or as a deployment. For this instance, let's see how to do a deployment instead of a sidecar. Note, the proxy could either already be running (and something common in the namespace) or started on demand by this.
Let's say, for discussion's sake, that I am creating a rails app in GKE. To access the database, I will need to run a cloud sql proxy (https://github.com/GoogleCloudPlatform/cloudsql-proxy/blob/master/Kubernetes.md). Now, I could either run this as a sidecar or as a deployment. For this instance, let's see how to do a deployment instead of a sidecar. Note, the proxy could either already be running (and something common in the namespace) or started on demand by this.