Skip to content

A script that will install various Kubernetes utilities and setup many useful aliases, as well as configure the shell prompt

Notifications You must be signed in to change notification settings

ccollicutt/k8s-dotfiles

Repository files navigation

k8s-dotfiles

Run Bats tests Super-Linter

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.

Install

Just run a few commands to install.

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

Upgrade

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

Run from Docker

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.

Uninstall

  • Edit ~/.bashrc and remove the source line
rm -rf ~/.k8s-dotfiles

Testing

See testing readme.

About

A script that will install various Kubernetes utilities and setup many useful aliases, as well as configure the shell prompt

Resources

Stars

Watchers

Forks

Packages

No packages published