Configuring custom configmaps and environment variables
You can add environment variables or files to your deployments by using the custom configmap feature. You can create configmaps for either files to be loaded or environment variables that need to be added to the pod.
About this task
Multiple configmaps can be mounted, and can hold environment variables or files, but not a mixture of both.
Mounting path is optional, and if not specified, files are mounted in the
overrides
directory:
/opt/ibm/wlp/usr/servers/defaultServer/configDropins/overrides. The mounting
path can be any valid path relative to the container.
All files that are mounted by using this mechanism are not validated and need to be in the correct format.
If a custom configmap is specified in the custom resource, but is not created, the deployment of that component stops.