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
![](https://miro.medium.com/v2/resize:fit:700/1*vRmue20Qum-NUl9BPbvDAQ.png)
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
![](https://miro.medium.com/v2/resize:fit:700/1*0tMCSGdWB86f1Vau6r7y8g.png)
Folder via created to configmaps
kubectl create configmap myconfig-02 --from-file=.
![](https://miro.medium.com/v2/resize:fit:700/1*SbGF4HwoqIDVWMok-YWKLg.png)
kubectl describe configmap myconfig-02