v1 · Cluster Resource
ConfigMap
ConfigMap holds configuration data for pods to consume.
Click on Property Name to see the description, and Pink Types to expand schema.
Looking for some examples?
There are 2 examples of ConfigMap that you can use as a starting point to create your own.
kind: ConfigMap apiVersion: v1 metadata: name: example-configmap namespace: payments # ConfigMap is namespaced resource data: database_max_conn: 20 log_level: DEBUG notes.txt: | config maps can be mounted as files too
kind: ConfigMap
apiVersion: v1
metadata:
name: inifile-configmap
namespace: payments # ConfigMap is namespaced resource
data:
# It's handy to have multiline content here and mount them as files in your containers
config.ini: |
[telemetry]
enabled = false
[log]
level = debug
[directories]
data = /var/lib/data
logs = /var/log/app