Configuration Map Properties
A Kubernetes configuration map (ConfigMap) is an object that stores configuration data in key-value pairs within a Kubernetes cluster. It provides a way to decouple a configuration from containerized applications, allowing you to manage and update a configuration independently of the application code. Configuration maps are particularly useful for storing non-sensitive data, such as environment variables, command-line arguments, configuration files, or any other configuration data that your application needs.
The name format of a configuration map is applicationName
-
nameSuffix. The applicationName is the global
parameter. The nameSuffix is each key in configMap.files. For example, for the following values, the configuration map name is
helloworld-config
:applicationName: helloworld
configMap:
files:
config: # nameSuffix
key: value
Configuration Map Properties describes the configuration map properties:Name | Description |
---|---|
configMap.enabled | Set this to true to enable persistence in the application's Helm chart. The default value is false . |
configMap.additionalLabels | More labels for the configuration maps. |
configMap.annotations | Annotations for the configuration maps. |
configMap.files | A map of configuration map files with suffixes and data contained in those files. |
This is an example of a configuration map properties configuration:
configMap:
enabled: true
files:
foo:
test.yaml: |-
url: "https://foo"