Выполнить команду во всех подах kubectl
Выполнить команду в каждом поде с нужным label selector
kubectl get pods -n <ns> -l app=<label> -o name | xargs -I{} kubectl exec {} -n <ns> -- <cmd>
more kubectl
all 73 commands →
Watch статуса подов
kubectl get pods -n <ns> -w
Поды по CPU
kubectl top pods -A --sort-by=cpu
Создать токен ServiceAccount
kubectl create token <sa-name> -n <ns> --duration=1h
Аудит прав — кто что может
kubectl auth can-i --list -n <ns>
Удалить все поды в неймспейсе
kubectl delete pods --all -n <ns>