How to change context if there are multiple clusters to connect from same server?
- To view the current context, run the following command:
# kubectl config current-context
default
- To view available contexts, run the following command. In the following ouput, * will be shown in front of current context
# kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
AKS AKS clusterUser_AKS
* default default default
- To change context, run the following command:
# kubectl config use-context default
- Switched to context "default".