Back to Glossary
Kubernetes

What is ConfigMap?

A Kubernetes object for storing non-sensitive configuration data as key-value pairs.

A ConfigMap stores configuration data — environment variables, config files, command-line arguments — separately from container images. This lets you change application configuration without rebuilding images. ConfigMaps can be consumed as environment variables, command-line args, or files mounted into pods. For sensitive data (passwords, API keys), use Secrets instead. ConfigMaps can be made immutable in Kubernetes 1.21+ for performance.

Related Terms

Test your knowledge of ConfigMap and 130 other DevOps concepts