Posts archive for June, 2022

Switch Context in Kubernetes with Kubectl

In Kubernetes Context is used to group all access parameters for a specific cluster under a convenient name in a kube config file. You can have multiple config files, but right now will focus on the case when you are using just one and all the contexts are in there.

Location of the default config file is

Linux: “~/.kube/config”
Windows: “$HOME\.kube\config”

The Context has three parameters: Cluster, Namespace and User.

When you use the kubectl it is using the current …

Read more