Skip to content

How to supply a CA file to Kustomize Controller when decrypting using Hashicorp Vault #2921

Answered by pjbgf
abangs-nn asked this question in Q&A
Discussion options

You must be logged in to vote

@abangs-nn This should be doable by mounting the CA-cert into the source-controller pod. Here's what a patch to your kustomization.yaml might look like:

patches:
  - patch: |
      - op: add
        path: /spec/template/spec/containers/0/volumeMounts
        value:
          - name: vault-ca-pemstore
            mountPath: /etc/ssl/certs/vault-ca.pem
            subPath: vault-ca.pem
            readOnly: true
      - op: add
        path: /spec/template/spec/volumes
        value:
          - name: vault-ca-pemstore
            secret:
              secretName: vault-ca-pemstore
    target:
      kind: Deployment
      name: "source-controller"

You just need to create the vault-ca-pemstore

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@pjbgf
Comment options

@abangs-nn
Comment options

@pjbgf
Comment options

@kylejackp
Comment options

@stefanprodan
Comment options

Answer selected by abangs-nn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants