If you are often working across multiple clusters you might find it more 
useful to use the --context flag to kubectl to be explicit about which 
context to use.

I'm also a fan of https://github.com/ahmetb/kubectx for this sort of thing.

On Monday, November 6, 2017 at 8:27:48 PM UTC-5, RomeNYRR wrote:
>
> For anyone that runs across this: 
>
> $ kubectl config view # Show Merged kubeconfig settings.$ kubectl config 
> current-context              # Display the current-context$ kubectl config 
> use-context my-cluster-name  # set the default context to my-cluster-name
>
>
> On Monday, November 6, 2017 at 3:52:00 PM UTC-8, RomeNYRR wrote:
>>
>> Greetings, 
>>
>> I've just deployed 2 clusters, 1 in the U.S. and the other in Europe; 
>> when managing the clusters with kubectl, what's the easiest way to switch 
>> between managing each region. I've read somewhere that `kubectl config 
>> use-context` needs to be configured. Does anyone have any tutorials or 
>> links handy where I can check this out? 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to