Our setup:
- SonarQube v9.9.0
- Using Helm chart to deploy in Google Kubernetes Engine (GKE)
- Google Cloud Platform (GCP) Cloud SQL with cloud sql auth proxy
What I’m trying to do:
Deploy the cloud-sql auth proxy as a sidecar using the extraContainers
option in the values.yml
The problem
The cloud-sql auth proxy container requires a volume (we typically just use an emptyDir
volume) and I am not able to create the necessary volume.
What I’ve tried:
I attempted to have the volume created using the persistence.volumes
option but this appears not to work as I thought.
- I did try it with both
persistence.enabled=True
and alsopersistence.enabled=False
Currently I’m having some success creating the cloud-sql auth proxy container as it’s own pod under the same namespace and connecting to the db via <IP address>.<namespace>.pod.cluster.local, but this is less ideal than having the cloud sql proxy accessible in the same pod.