Differences between revisions 2 and 3
Revision 2 as of 2019-07-15 20:42:46
Size: 179
Editor: PieterSmit
Comment:
Revision 3 as of 2019-07-16 04:53:19
Size: 473
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:

 * 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 '\'''

}}}
----
CategoryK8sKubernetes

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 '\'''


CategoryK8sKubernetes

vigor: k8s/Monitoring (last edited 2020-04-16 20:32:17 by PieterSmit)