Skip to content

Instantly share code, notes, and snippets.

@danieldn
Created August 29, 2017 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieldn/c13efee65ffc908313f370a580f457aa to your computer and use it in GitHub Desktop.
Save danieldn/c13efee65ffc908313f370a580f457aa to your computer and use it in GitHub Desktop.
Installs kubectl with auto completion on CoreOS
# 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