- kube current cluster info
kubectl config current-context
kubectl cluster-info
kubectl get events
- kube top
kubectl top pod --all-namespaces
kubectl top node
- kube view node
kubectl get nodes -o wide
- k8s node resource request & limits stats
kubectl get nodes --no-headers | awk '{print $1}' | xargs -I {} sh -c 'echo {}; kubectl describe node {} | grep Allocated -A 5 | grep -ve Event -ve Allocated -ve percent -ve -- ; echo'
- debug shell
kubectl run my-shell -i --tty --image ubuntu -- bash