Kubernetes · Resource
ConfigMap
A ConfigMap stores non-confidential configuration as key-value pairs. Pods can use it as environment variables, command arguments, files in a volume, or data read through the Kubernetes API.
Last updated
- Since
- v1.19
Syntax
apiVersion: v1
kind: ConfigMap
metadata:
name: <name>
data:
<key>: <value>
# Optional:
# binaryData:
# immutable: trueIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SecretConfigure a Pod to Use a ConfigMapVolumesenvironment variablesconfigMapKeyRefconfigMapRefConfigMapList