Phase — high-level Pod state.
1apiVersion: v12kind: Pod3metadata:4 name: my-pod5spec:6 containers:7 - name: app8 image: nginx:latest9 resources:10 requests:11 cpu: "100m"12 memory: "128Mi"13 limits:14 cpu: "200m"15 memory: "256Mi"16 startupProbe:17 httpGet:18 path: /healthz19 port: 8020 failureThreshold: 3021 periodSeconds: 1022 readinessProbe:23 httpGet:24 path: /ready25 port: 8026 initialDelaySeconds: 527 periodSeconds: 1028 livenessProbe:29 httpGet:30 path: /healthz31 port: 8032 initialDelaySeconds: 1533 periodSeconds: 20
1# Check Pod phase2kubectl get pod my-pod -o jsonpath='{.status.phase}'34# View all Pod phases5kubectl get pods -o custom-columns=NAME:.metadata.name,PHASE:.status.phase,NODE:.spec.nodeName,RESTARTS:.status.containerStatuses[*].restartCount67# Check Pod conditions8kubectl get pod my-pod -o jsonpath='{.status.conditions[*].type}'9kubectl get pod my-pod -o jsonpath='{.status.conditions[*].status}'1011# Watch phase changes12kubectl get pods -w13kubectl get events --field-selector involvedObject.name=my-pod1415# Check pending Pods16kubectl get pods --field-selector status.phase=Pending17kubectl get pods --field-selector status.phase=Failed18kubectl get pods --field-selector status.phase=Succeeded
Phases:
Transitions: