Yaml 파일에서 환경변수 사용 먼저 환경 변수를 설정함 명령어 export TEST_VERSION=1.0.1 예제 yaml 파일 apiVersion: v1 kind: Pod metadata: name: iksoon-pod-tomcat labels: app: tomcat8 spec: containers: - name: iksoon-tomcat-test image: peksoon/tomcat:$TEST_VERSION ports: - containerPort: 8080 yaml 파일 생성 시 환경변수 전달하여 생성 명령어 envsubst < pod2.yaml | kubectl apply -f - 제 글을 복사할 시 출처를 명시해주세요. 글에 오타, 오류가 있다면 댓글로 알려주세요! 바로 수정하겠습니다!