Created
January 28, 2020 12:32
-
-
Save voneiden/c366fed54e98fb930ed2a3a9a64c5ae0 to your computer and use it in GitHub Desktop.
Check cluster weave connections status on kubernetes using kubectl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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