Kubespec Logo kubespec.dev

v1

Namespaced Resource

ConfigMap

        ConfigMap holds configuration data for pods to consume.
      

Click on Property Name to show the description, and Pink Types to expand schema.

Required properties are marked with *

Change History

Kubernetes v1.32

Kubernetes v1.31

Kubernetes v1.30

Kubernetes v1.29

Kubernetes v1.28

Kubernetes v1.27

~7

Kubernetes v1.26

Kubernetes v1.25

-1

Kubernetes v1.24

~5

Kubernetes v1.23

Kubernetes v1.22

+1

Kubernetes v1.21

~1

Kubernetes v1.20

Kubernetes v1.19

~2

Kubernetes v1.18

+1

Kubernetes v1.17

~1

Kubernetes v1.16

+2-2~3

Kubernetes v1.15

+1

Kubernetes v1.14

+1~1

Kubernetes v1.13

Kubernetes v1.12

~1

Kubernetes v1.11

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 a namespaced resource
data:
  database_max_conn: 20
  log_level: DEBUG

  notes.txt: |
    config maps can be mounted as files too

Other useful resources