Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 511 Bytes

3.understand-configmap.MD

File metadata and controls

20 lines (16 loc) · 511 Bytes

ConfigMap

cat game.properties

#configmap from file
kubectl create configmap game-config --from-file=game.properties
kubectl create configmap game-env-config --from-env-file=game.properties
kubectl get configmap -oyaml game-config

ConfigMap from literal

kubectl create configmap special-config --from-literal=special.how=very --from-literal=special.type=charm
#downward api pod
kubectl create -f downward-api-pod.yaml
kubectl get po downward-api-pod
kubectl logs -f downward-api-pod