Skip to content

Instantly share code, notes, and snippets.

@voneiden
Created January 28, 2020 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voneiden/c366fed54e98fb930ed2a3a9a64c5ae0 to your computer and use it in GitHub Desktop.
Save voneiden/c366fed54e98fb930ed2a3a9a64c5ae0 to your computer and use it in GitHub Desktop.
Check cluster weave connections status on kubernetes using kubectl
#!/bin/bash
kubectl get pods -n kube-system | grep weave | awk '{print $1;}' | while read -r podname ; do
kubectl exec -n kube-system $podname /home/weave/weave -- --local status connections
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment