Get node conditions
Show all conditions per node (Ready, MemoryPressure, DiskPressure)
kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{": "}{range .status.conditions[*]}{.type}={.status},{" "}{end}{"\n"}{end}'
- tool
- kubectl73 commands
More kubectl commands
-
kubectl create job --from=cronjob/<name> manual-run -n <ns>Immediately run a CronJob as a one-off Job
-
kubectl wait pod -l app=<label> -n <ns> --for=condition=Ready --timeout=120sBlock until matching pods are Ready or timeout
-
kubectl get --raw /metrics | grep apiserver_request_totalPull raw Prometheus metrics from the apiserver without a metrics stack
-
kubectl get --raw '/healthz/etcd?verbose'Verify etcd connectivity through the apiserver health endpoint
-
kubectl get --raw '/apis/metrics.k8s.io/v1beta1/nodes' | jq '.items[] | {name:.metadata.name, cpu:.usage.cpu, mem:.usage.memory}'Raw node usage from metrics API; bypasses kubectl top formatting