# get number of running pods kubectl get -A pods --field-selector=status.phase=Running --output json | jq -j '.items | length' # get number of NOT running pods kubectl get -A pods --field-selector=status.phase!=Running --output json | jq -j '.items | length' # find out why a pod is in pending describe pod -n # get a node max number of pods get node vmmts02 -ojsonpath='{.status.capacity.pods}{"\n"}' # scale a deployment kubectl scale -n --replicas=1 deployment # list images k3s crictl images # list containers k3s crictl ps