Skip to content

Example: Secret

Stéphane Brunner edited this page May 31, 2024 · 4 revisions

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

secrets:
  content:
    secret1: value1

services:
  deployment1:
    containers:
      container1:
        image:
          repository: camptocamp/image
          tag: latest
        env:
          env1:
            type: configMap
            name: self-secret
            key: secret1
Clone this wiki locally