Register two k8s executor for two differnet GCP projects (OD-1875)
Closed
vipul opened 3 weeks ago

Hello @robin , We have installed onedev server in VM. Now we have two different projects GCP Project-1 and Project-2.

We want to register two different kuberenetes executor for these two projects.

But the executor creates pod where the default context is set in onedev server at this path. (/root/.kube/config)

So if in my onedev server the context is set to project-1 then it will create pod (for the job) in that project-1 cluster only even if I want to run job for project-2.

In the job I am defining to connect to cluster-2 of project-2 but the job pod creates in project-1 cluster-1 only.

Robin Shen commented 3 weeks ago

In more settings of kubernetes executor, you may configure kube config used by the executor.

vipul commented 3 weeks ago

Thank you @robin It worked by managing kube config file

vipul changed state to 'Closed' 3 weeks ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Major
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-1875
Please wait...
Page is in error, reload to recover