Skip to content

configMaps

To add a configMap to configs add the following to values.yaml.

configs:
  - name: yourWeb-config
    namespace: mywebapplication
    dontOverrideOnUpdate: false
    values:
      config.yaml: |
        server:
          host: localhost
          port: 8080
        name: first-order
  - name: yourApp-config
    namespace: mywebapplication
    dontOverrideOnUpdate: true
    values:
      publicKey: thisIsMyPublicKey77838884774736627736 
      appURL: "mywebapp.local"
      masterLogin: "enabled"
      rouserLogin: "enabled"
      inDevelopmentMode: "true"

With the option dontOverrideOnUpdate: true you can set that an helm upgrade <releaseName> will not overwrite your config. You can add multiple configMaps in configs.