Skip to content

Terraform Helm: How to add sqlproxy Container with values #1423

Closed Answered by sp71
sp71 asked this question in Q&A
Discussion options

You must be logged in to vote

You can pass any YAML to extraContainers. Here's an example with cloudsql-proxy sidecar containers

      extraContainers: |
        - name: cloud-sql-proxy
          image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.2.0
          imagePullPolicy: Always
          args:
          - "--structured-logs"
          - "--health-check"
          - "--http-address=0.0.0.0"
          - "--port=5432"
          - "--private-ip"
          - <INSTANCE>
          securityContext:
            runAsNonRoot: true
            readOnlyRootFilesystem: true
            allowPrivilegeEscalation: false
            capabilities:
              drop:
                - ALL
          livenessProbe:
            ht…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sp71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant