티스토리 뷰

728x90
kubectl get pod <pod-name>

kubectl describe pod <pod-name>

kubectl get pod nginx --template '{{.status.initContainerStatuses}}'

kubectl logs <pod-name> -c <init-container-2>

https://kubernetes.io/ko/docs/tasks/debug-application-cluster/debug-init-containers/

 

초기화 컨테이너(Init Containers) 디버그하기

이 페이지는 초기화 컨테이너의 실행과 관련된 문제를 조사하는 방법에 대해 보여준다. 아래 예제의 커맨드 라인은 파드(Pod)를 <pod-name> 으로, 초기화 컨테이너를 <init-container-1> 과 <init-container-2>

kubernetes.io

 

728x90
댓글