Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for extraContainers Value : Google Cloud SQL Proxy #15

Open
jaekook-neonesia opened this issue Nov 3, 2021 · 0 comments
Open

Comments

@jaekook-neonesia
Copy link

Hi, could add extraContainers value to deployment template?
This will be very helpful for GKE users.(include me :))
Thank you.

values :

extraContainers: |

  • name: cloudsql-proxy
    image: gcr.io/cloudsql-docker/gce-proxy:1.17
    command:
    • /cloud_sql_proxy
      args:
    • -instances={{ .Values.cloudsql.project }}:{{ .Values.cloudsql.region }}:{{ .Values.cloudsql.instance }}=tcp:5432
    • -credential_file=/secrets/cloudsql/credentials.json
      volumeMounts:
    • name: cloudsql-creds
      mountPath: /secrets/cloudsql
      readOnly: true

template:

        - name: HASURA_GRAPHQL_AUTH_HOOK_MODE
          value: "{{ .Values.auth.hook.mode }}"
        {{- end }}

      resources:
        {{- toYaml .Values.resources | nindent 12 }}

    {{- with .Values.extraContainers }}
    {{- tpl . $ | nindent 8 }}
    {{- end }}

Ref : https://github.com/codecentric/helm-charts/tree/master/charts/keycloak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant