kubectl get¶
Description¶
kubectl get lists Kubernetes resources in the cluster.
It is commonly used to inspect the current state of workloads and infrastructure components.
Syntax¶
Common Resource Types¶
| Resource | Description |
|---|---|
| pods | Running containers |
| deployments | Application deployments |
| services | Network access points |
| nodes | Cluster worker nodes |
Examples¶
List Pods
List Pods with Additional Details
List Deployments
Watch Resources in Real Time
Output Example
Related Commands¶
- kubectl describe
- kubectl logs