count pods by label

PHOTO EMBED

Fri Oct 15 2021 13:56:53 GMT+0000 (UTC)

Saved by @mkhaired #k8s

kubectl get pods -l env=dev --no-headers | wc -l
content_copyCOPY