Kubespec Logo kubespec.dev

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

Other useful resources