Skip to content

Instantly share code, notes, and snippets.

@DylanGraham
Created July 21, 2020 00:39
Show Gist options
  • Save DylanGraham/095de220ccf8f306153f19f866d328a8 to your computer and use it in GitHub Desktop.
Save DylanGraham/095de220ccf8f306153f19f866d328a8 to your computer and use it in GitHub Desktop.
Get server and node versions of your k8s clusters
#!/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