About
Toolbox
Notes on tools for interacting with k8s.
Install kubectl plugins with krew
Krew is a plugin manager for kubectl plugins. You can install it with brew and update plugins with kubectl krew update
These together make namespace switching better. Learn more about kubectx + kubens.
1 2 | |
This will help with generating example k8s resources:
1 | |
This one helps find deprecated stuff in your cluster:
1 | |
To install plugins from a krew file, you just need a file with one plugin per line. You can use this one:
1 2 3 | |
k8s shell aliases
Add some helpful k8s aliases:
1 2 3 4 5 | |
To have the above file sourced every new shell, copy this into your .bashrc or .bash_profile:
1 2 3 4 | |