Skip to content

Instantly share code, notes, and snippets.

@polettix
Created November 24, 2020 18:26
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 polettix/87eb90d8acf5647d8a23f1fb5dd5cc3f to your computer and use it in GitHub Desktop.
Save polettix/87eb90d8acf5647d8a23f1fb5dd5cc3f to your computer and use it in GitHub Desktop.
#!/bin/sh
microk8s.kubectl config view --raw > ~/kube-config
printf %s\\n "alias k9s='k9s --kubeconfig ~/kube-config'" >> ~/.bash_aliases
mkdir -p ~/bin
curl -L https://github.com/derailed/k9s/releases/download/v0.24.1/k9s_Linux_x86_64.tar.gz \
| tar xzO k9s > ~/bin/k9s
chmod +x ~/bin/k9s
printf %s\\n 'now exit your shell and enter again'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment