Skip to content

Example: ConfigMap metadata

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

Create the metadata ConfigMap and use it in a container as an environment variable.

metadata:
  enabled: true
services:
  deployment1:
    enabled: true
    containers:
      container1:
        image:
          repository: camptocamp/image
          tag: latest
        env:
          env1:
            type: configMap
            name: self-metadata
            key: SERVICE_DEPLOYMENT1_CONTAINER_CONTAINER1_IMAGE_TAG
Clone this wiki locally