더북(TheBook)

2. 앞의 명령을 실행한 후에 파드가 생성되는지는 kubectl get pods -w 명령으로 확인합니다. 다음과 같이 순서대로 하나씩 생성하는 것을 볼 수 있습니다.

[root@m-k8s ~]# kubectl get pods -w
NAME            READY   STATUS              RESTARTS   AGE
nfs-pvc-sts-0   0/1     ContainerCreating   0          3s
nfs-pvc-sts-0   1/1     Running             0          9s
nfs-pvc-sts-1   0/1     Pending             0          0s
nfs-pvc-sts-1   0/1     Pending             0          0s
nfs-pvc-sts-1   0/1     ContainerCreating   0          0s
nfs-pvc-sts-1   0/1     ContainerCreating   0          1s
nfs-pvc-sts-1   1/1     Running             0          5s
nfs-pvc-sts-2   0/1     Pending             0          0s
nfs-pvc-sts-2   0/1     Pending             0          0s
nfs-pvc-sts-2   0/1     ContainerCreating   0          0s
nfs-pvc-sts-2   0/1     ContainerCreating   0          1s
nfs-pvc-sts-2   1/1     Running             0          6s
nfs-pvc-sts-3   0/1     Pending             0          0s
nfs-pvc-sts-3   0/1     Pending             0          0s
nfs-pvc-sts-3   0/1     ContainerCreating   0          0s
nfs-pvc-sts-3   0/1     ContainerCreating   0          1s
nfs-pvc-sts-3   1/1     Running             0          6s
신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.