Kubernetes K8s/Monitoring
Events happening in cluser
kubectl -n kube-system get events --sort-by='{.lastTimestamp}' kubectl -n kube-system get events -w
Node cpu and memory utilization
alias util='kubectl get nodes | grep node | awk '\''{print $1}'\'' | xargs -I {} sh -c '\''echo {} ; kubectl describe node {} | grep Allocated -A 5 | grep -ve Event -ve Allocated -ve percent -ve -- ; echo '\'''
Watch node events (& puts it in background on terminal)
kubectl get pods -A -o wide &