skip to content
Alvin Lucillo

kubectl resource count

/ 1 min read

💻 Tech

To get the number of resources, you can use the command below. The example gets the number of pods, but you can use other resources likks rs, deployment, and rc.

kubectl get po --no-headers | wc -l