Member-only story
ConfigMap — Kubernetes
3 min readNov 20, 2023
Configmaps allow you to decouple configuration artifacts from images.
Portability of Containers.
ConfigMap their
ConfigMap creates ways
- From Files & folders — from-file
- From Literals — from-literals
- Mounting ConfigMaps as Volumes
First create two file using ConfigMaps
Check if any config maps are created.
kubectl get configmaps
Create a ConfigMaps file
kubectl create configmap myconfig --from-file=game.properties
kubectl get configmaps
kubectl describe configmap myconfig
Folder via created to configmaps
kubectl create configmap myconfig-02 --from-file=.
kubectl describe configmap myconfig-02