what is context in k8s
Hi @Phani-Chakravarthula ,
Thank you for your question, it’s a interested one.
A context is just a set of access parameters that contains a Kubernetes cluster, a user, and a namespace.
Let’s say we have some clusters : cluster1 - cluster2. To access to those context, we need users let’s say user1 - user2
A context is set of cluster and user :
- cluster1 & user 1
- cluster2 & user2
Ad now if you want to access to a cluster you need to switch to the specific context and you can access to your cluster base on the right give to user.
By default you’ll be on default namespace but you can specific a namespace on the context.
https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
https://www.decodingdevops.com/what-is-kubernetes-context-and-kubernetes-context-tutorial/