Created
July 21, 2020 00:39
-
-
Save DylanGraham/095de220ccf8f306153f19f866d328a8 to your computer and use it in GitHub Desktop.
Get server and node versions of your k8s clusters
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
#!/usr/local/bin/bash | |
for i in $(kctx); do kctx $i; kubectl version --short | grep Server; kubectl get node --no-headers | awk {'print "Node Version:\t" $5'} | sort | uniq; echo; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment