Switching clusters in kubectl CLI
This is as my note
Show all configured clusters/contexts
> kubectl config get-contexts
Same as in config file
> cat ~/.kube/config
We can add/delete/modify directly the config file
Switch cluster/context
> kubectl config use-context [context name]
Change namespace
> kubectl config set-context --current --namespace [ns name]