Use kubectl get to retrieve and display Kubernetes resources and their attributes. It provides a quick view of observable cluster state while creating, scaling, or troubleshooting workloads. section 8.1.1 section 8.2
Common operational checks include:
- Run kubectl get po to list pods in the current namespace and inspect readiness, status, restarts, and age. section 8.1.1
- Run kubectl get deploy,po to view a Deployment together with its pods and compare availability with pod state. section 8.2
- Run kubectl get po -A to inspect pods across all namespaces when the relevant namespace is uncertain. section 8.2
- Use the result to choose a deeper diagnostic command, such as kubectl logs or kubectl describe po. section 8.1.1 section 8.2
Verify a scaled Deployment
After creating prod-app with one nginx replica, kubectl get deploy,po shows the Deployment and its running pod. After scaling to three replicas, kubectl get po exposes two Pending pods and one Running pod, directing troubleshooting toward the scheduler. section 8.2
root@kind-control-plane:/# kubectl get po NAME READY STATUS RESTARTS AGE busybox 2/2 Running 0 1m mysql-5dcb7797f7-6spvc 1/1 Running 2 (22h ago) 45h
Representative pod-list output shows READY, STATUS, RESTARTS, and AGE columns for immediate cluster-state assessment. section 8.1.1

