Skip to main content

Category: shell

Kube Sticky Project

One of the main things I missed going from RedHat Openshift to vanilla Kubernetes is the concept of switching projects. An Openshift project is simply a context associated with a particular namespace. However projects/namespaces can be switched and all subsequent commands will inherit that namespace scope. This saves me the trouble of attaching -n namespace to each and every command. I decided to write a quick and dirty ZSH plugin to take care of this by adding a kubectl project command.