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.
cat configmap.yaml
kubectl create -f configmap.yaml
cat pod.yaml
kubectl create -f pod.yaml
kubectl logs my-pod
Output:
bar
kubectl delete po my-pod
kubectl delete cm my-configmap