[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: OC client - Multi cluster



It seems below approach working.  Not sure that is right approach to deal with this issue.

 

oc get pods -o wide --config ~/.kube/cluster1

oc get pods -o wide --config ~/.kube/cluster2

 

 

 

-- 

Srinivas Kotaru

 

From: Srinivas Naga Kotaru <skotaru cisco com>
Date: Tuesday, December 20, 2016 at 11:08 PM
To: "ccoleman redhat com" <ccoleman redhat com>
Cc: dev <dev lists openshift redhat com>
Subject: Re: OC client - Multi cluster

 

U mean using separate .kube/config per tab?

 

1.      KUBECONFIG=/path/to/.kube/config env variable

 

 

How this approach works in CI/CD environment where it has to deploy to multiple clusters? One login should not overwrite another deployment where it might be deploying to altogether different cluster?

 

Does OC support --kubeconfig=/path/to/.kube/config so CI/CD systems use oc login –user <> -password <> --kubeconfig = --kubeconfig=/path/to/.kube/config??

 

 

-- 

Srinivas Kotaru

 

From: "ccoleman redhat com" <ccoleman redhat com>
Date: Tuesday, December 20, 2016 at 10:49 PM
To: Srinivas Naga Kotaru <skotaru cisco com>
Cc: dev <dev lists openshift redhat com>
Subject: Re: OC client - Multi cluster

 

You can use different KUBECONFIG environment variables per tab.  It has been suggested to add more environment variables but that can complicate scripting.


On Dec 21, 2016, at 1:43 AM, Srinivas Naga Kotaru (skotaru) <skotaru cisco com> wrote:

Is it normal behavior to switch to each cluster and login separately while working on clusters?  One terminal with 3 tabs, can’t we work each cluster separately? What happening, whatever last login, being affective same cluster on all the tabs.

 

To overcome I tried to play around with set-context and use-context but still no use. Commands always issued against last login or current-context(which is always the last logged cluster)

 

-- 

Srinivas Kotaru

_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]