Запустить debug pod на узле k8s-debug
Привилегированная оболочка на узле кластера через debug pod
kubectl debug node/my-node -it --image=ubuntu
more k8s-debug
all 27 commands →
Exec в sidecar контейнер
kubectl exec -it mypod -c sidecar-name -- /bin/sh
Проверить requests/limits
kubectl get pod mypod -o jsonpath='{range .spec.containers[*]}{.name}{"\t"}{.resources}{"\n"}{end}'
Состояние узла (describe)
kubectl describe node my-node | grep -A5 'Conditions:'
Поды по потреблению ресурсов
kubectl top pods -A --sort-by=memory | head -20
Следить за событиями пода
kubectl get events -n mynamespace --field-selector involvedObject.name=mypod --watch