Skip to content

Instantly share code, notes, and snippets.

Created August 29, 2017 16:30
What would you like to do?
Installs kubectl with auto completion on CoreOS
# Run from a Coreos user's home directory
set -e
curl -O
chmod +x kubectl
sudo mv kubectl /opt/bin
toolbox dnf -y install bash-completion
echo "source /var/lib/toolbox/test-fedora-latest/usr/share/bash-completion/bash_completion" >> ~/.bashrc
echo "source <(kubectl completion bash)" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment