DevOps/Kubernetes2022. 5. 29. 21:56[Kubernetes] ConfigMap & Secret ( + 환경변수)
✔️ 환경변수 vagrant@k8s-node1 ~ kubectl explain pods.spec.containers.env name : 환경변수의 이름 value : 환경변수의 값 myweb.yaml apiVersion: v1 kind: Pod metadata: name: myweb-env spec: containers: - name: myweb image: ghcr.io/c1t1d0s7/go-myweb:alpine env: - name: MESSAGE # 환경변수명 value: "Customized Hello World" vagrant@k8s-node1 ~/configure/env kubectl create -f myweb.yaml pod/myweb-env created vagrant@k..