Kubernetes ConfigMap Generator
Easily generate Kubernetes ConfigMaps to decouple configuration artifacts from image content and keep your applications portable.
Kubernetes ConfigMap Generator
Overview
Generate Kubernetes ConfigMaps to store non-confidential data in key-value pairs. Pods can consume ConfigMaps as environment variables, command-line arguments, or as configuration files in a volume.
Frequently Asked Questions
Should I store passwords in a ConfigMap?
No. ConfigMaps are designed for non-confidential configuration data. For sensitive data like passwords, tokens, or SSH keys, use Kubernetes Secrets instead.
How do I mount a ConfigMap as a file?
In your Pod or Deployment specification, you define a volume that references the ConfigMap, and then add a volumeMount to the container pointing to the path where you want the file to appear.