Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jayunit100/ccbcbee43dd6b2740e9ce7b4bf9974c1 to your computer and use it in GitHub Desktop.

Select an option

Save jayunit100/ccbcbee43dd6b2740e9ce7b4bf9974c1 to your computer and use it in GitHub Desktop.
for c in `./tkg get clusters | cut -d'|' -f 2 | grep -v '+' | grep -v NAME` ; do
tkg get credentials $c ;
kubectl config use-context $c-admin@$c ; kubectl cluster-info ;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment