Member-only story

ConfigMap — Kubernetes

Always learning
3 min readNov 20, 2023

Configmaps allow you to decouple configuration artifacts from images.

Portability of Containers.

ConfigMap their

ConfigMap creates ways

  1. From Files & folders — from-file
  2. From Literals — from-literals
  3. 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

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Always learning
Always learning

Written by Always learning

கற்றுக் கொள்ளும் மாணவன்...

Responses (1)

What are your thoughts?