Register two k8s executor for two differnet GCP projects (OD-1875)
vipul opened 2 years 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 2 years ago

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

  • vipul commented 2 years ago

    Thank you @robin It worked by managing kube config file

  • vipul changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Major
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-1875
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover