Environment Variables
How your Cobrowse deployment can be configured.
Many of the Cobrowse service component configurations are managed using environment variables specified in ConfigMap
and Secret
resources, and these configurations can be overridden outside of the Helm chart by resources that you manage.
ConfigMap Resources
To see a list of all ConfigMap
resources managed by the Helm chart, you can run:
Each of these envvars ConfigMap
s can be overridden by creating ConfigMap
resources named (respectively):
The naming of each resource is prefixed with your .Release.Name
. The examples below assume the .Release.Name
is cobrowse
.
Secret Resources
To see a list of all Secret
resources managed by the Helm chart, you can run:
Each of these envvars Secret
s can be overridden by creating Secret
resources named (respectively):
The naming of each resource is prefixed with your .Release.Name
. The examples below assume the .Release.Name
is cobrowse
.
Order of Priority
The following order of priority is followed while resolving environment variables, using the api service component as an example:
Secret: cobrowse-api-custom-envvars
Secret: cobrowse-api-envvars
ConfigMap: cobrowse-api-custom-envvars
ConfigMap: cobrowse-api-envvars
Thus if you override an environment variable such as redis_url
in the cobrowse-api-custom-envvars
ConfigMap, then the value will be overridden by the Helm-managed cobrowse-api-envvars
Secret. Thus, make sure before overriding an environment variable in the ConfigMap that it isn't set in one of the Secret resources first.
Last updated