Skip to content

Example: External secret

Stéphane Brunner edited this page Jul 3, 2024 · 9 revisions

Create a Secret from a secret stroe with one value and use it in a container as an environment variable.

externalSecret:
  secretStoreRef:
    name: my-secret-store
    kind: SecretStore
  data:
    secret1:
      remoteRef:
        key: my-secret1

services:
  deployment1:
    enabled: true
    containers:
      container1:
        image:
          repository: camptocamp/image
          tag: latest
        env:
          env1:
            type: secret
            name: self-external
            key: secret1

Clone this wiki locally