Created
August 29, 2017 16:30
-
-
Save danieldn/c13efee65ffc908313f370a580f457aa to your computer and use it in GitHub Desktop.
Installs kubectl with auto completion on CoreOS
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
# Run from a Coreos user's home directory | |
set -e | |
curl -O https://storage.googleapis.com/kubernetes-release/release/v1.6.1/bin/linux/amd64/kubectl | |
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