Context switch in Kubernetes Config

Pavan Raga
2 min readMar 8, 2021

--

Did you ever find yourself working with multi-cluster multi-namespace environments in Kubernetes and switching the context between them a toil? That is, every time updating ~/.kube/config to a new YAML config for a particular cluster and/or namespace?

If the answer is yes, this article will help make your life a bit easier :)

  1. Copy all the yml config files to a custom path…

--

--