Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 733 Bytes

File metadata and controls

40 lines (28 loc) · 733 Bytes

ConfigMaps

In the training, we will learn about Configmaps.

Navigate to the folder 12_configmap from CLI, before you get started.

Note that, there are errors in the yaml files. Try to fix them.

Inspect configmap.yaml definition file and create the configmap

cat configmap.yaml
kubectl create -f configmap.yaml

Inspect pod.yaml definition file and create the pod

cat pod.yaml
kubectl create -f pod.yaml

Verify everything works fine

kubectl logs my-pod

Output:

bar

Cleanup

kubectl delete po my-pod
kubectl delete cm my-configmap

Jump to Home | Previous Training | Next Training