Skip to content

Example: Variable substitution

Stéphane Brunner edited this page May 31, 2024 · 1 revision

Create a Container with an environment variable built from a ConfigMap attribute.

configMaps:
  content:
    data1: value1

services:
  deployment1:
    enabled: true
    containers:
      container1:
        image:
          repository: camptocamp/image
          tag: latest
        env:
          env1:
            type: configMap
            name: self
            key: data1
          USED_ENV:
            value: prefix-$(env1)-postfix
            order: 1
Clone this wiki locally