Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ConfigMap 실습

Info
iconfalse
Code Block
linenumberstrue
sansae@sansaeAir15m2 k8s-lab-workspace % k apply -f configmap.yaml 
configmap/game-demo created

sansae@sansaeAir15m2 k8s-lab-workspace % k get cm
NAME               DATA   AGE
game-demo          4      12s
kube-root-ca.crt   1      2d10h

sansae@sansaeAir15m2 k8s-lab-workspace % k apply -f configmap-pod.yaml 
pod/configmap-demo-pod created

sansae@sansaeAir15m2 k8s-lab-workspace % k exec -it configmap-demo-pod -- env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=configmap-demo-pod
UI_PROPERTIES_FILE_NAME=user-interface.properties
PLAYER_INITIAL_LIVES=3
KUBERNETES_SERVICE_PORT=443
KUBERNETES_SERVICE_PORT_HTTPS=443
KUBERNETES_PORT=tcp://10.0.0.1:443
KUBERNETES_PORT_443_TCP=tcp://10.0.0.1:443
KUBERNETES_PORT_443_TCP_PROTO=tcp
KUBERNETES_PORT_443_TCP_PORT=443
KUBERNETES_PORT_443_TCP_ADDR=10.0.0.1
KUBERNETES_SERVICE_HOST=10.0.0.1
TERM=xterm
HOME=/root


...