CKA
Commands and Arguments
백셀건전지
2021. 9. 8. 14:43
Dockerfile Commands
- pod의 definition 파일에서 Dockerfile의 Entrypoint 명령어에 argument를 전해주려면 spec.containers.args 에 JSON Array 형식으로 넘겨준다.
- args 로 넘겨주면 Dockerfile의 CMD override함
- Dockerfile의 Entrypoint override하려면 spec.containers.command 에 JSON Array 형식으로 넘겨준다.
Arguments
- spec.containers.env 에서 array 형태로 선언해줌. - name: AAA \ value: bbb 로 key-value 형식
- value를 configmap이나 secret에서 가져오고자 하면 value: 대신 valueFrom: configmapKeyRef/secretKeyRef 사용