Other toolsBash

K8s – Cluster Health Summary (Bash)

Get a quick health summary of a Kubernetes cluster.

Bash
#!/usr/bin/env bash
kubectl get nodes -o wide
kubectl get pods -A --field-selector=status.phase!=Running | tail -n +2
kubectl get events -A --sort-by=.lastTimestamp | tail -n 50
  

From Joseph Nakhle's automation workbench.

More Other tools scripts