Skip to content

Instantly share code, notes, and snippets.

@busser
Last active October 11, 2020 15:00
Show Gist options
  • Save busser/e6c03a34f62b6569ef75e01c529199f4 to your computer and use it in GitHub Desktop.
Save busser/e6c03a34f62b6569ef75e01c529199f4 to your computer and use it in GitHub Desktop.
Code samples for blog article on kubectl plugins
#!/usr/bin/env bash
echo "Congrats ${USER}, you just used a kubectl plugin! 💪"
chmod +x kubectl-hello
ln -s $PWD/kubectl-hello /usr/local/bin/kubectl-hello
kubectl krew update
kubectl krew search
kubectl krew install whoami
# You can upgrade a single plugin
kubectl krew upgrade whoami
# or upgrade all installed plugins
kubectl krew upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment