kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch04/exercises/4.03.sh

7 lines
292 B
Bash
Raw Normal View History

cd /kiamol/ch04
kubectl create configmap sleep-config-literal --from-literal=kiamol.section='4.1'
kubectl get cm sleep-config-literal
kubectl describe cm sleep-config-literal
kubectl apply -f sleep/sleep-with-configMap-env.yaml
kubectl exec deploy/sleep -- sh -c 'printenv | grep "^KIAMOL"'