I often need useful Kubernetes utilties and aliases installed into a Linux instance. The install.sh
script will setup some commands, scripts, and a PS1 via ~/.k8s-dotfiles/
. Sourcing the rc file will be added to ~/.bashrc
. Note that this will reset your shell prompt.
Just run a few commands to install.
Run these commands.
git clone https://github.com/ccollicutt/k8s-dotfiles
cd k8s-dotfiles
./install.sh
source ~/.bashrc
At this point your shell should be configured by k8s-dotfiles
and you can remove the repository.
rm -rf k8s-dotfiles
Backup your existing .k8sdotfiles if you want (though nothing is permanent):
mv ~/.k8s-dotfiles/ ~/.k8s-dotfiles.bak
And run the install.
If you're happy, remove the backup.
rm -rf ~/.k8s-dotfiles.bak
Build the image:
./build-docker-images.sh
It will output a docker run command to use the docker image just built to mount ~/.kube into the container and have the utilities available without having to install it locally. Or you could use this to test it out.
- Edit ~/.bashrc and remove the source line
rm -rf ~/.k8s-dotfiles
See testing readme.