Skip to main content

Adding custom environment variables via Charts

Adding custom environment variables via Charts

KOBIL Shift charts are designed to allow setting custom environment variables for the pods. Use the valuesOverride section for each service in the following manner to set any custom environment variable:

additional env-vars

idp-core:
 enabled: true

 valuesOverride:
  logging:
  level: "DEBUG"
mainContainer:
....
envFromSecret:
# set environment-variable CUSTOM_TEST_USER with value "userA"
CUSTOM_TEST_USER: "userA"
# set environment-variable CUSTOM_REGION with value "EU"
CUSTOM_REGION: "EU"

envFromConfigmap:
# set environment-variable CUSTOM_PROVIDER_API_KEY with value "abcde...xyz"
CUSTOM_PROVIDER_API_KEY: "abcde...xyz"

astClientManagement:
valuesOverride:
mainContainer:
envFromConfigMap:
# for ast services db-pool connection overwrite by EnvVar instead of chart parameter
database: '{"pool": { "maxSize": 4 } }'

Note: When using i.e. "envFromConfigmap" this will create and/or update the service ConfigMap resource in the namespace so you can check if setting is valid and becomes part of the deployment. Finally you see the env-var at Pod runtime level.