We have a Kubernetes cluster on which OneDev is running and we are using for builds with Kubernetes executor. However, as one of the builds takes a lot of memory and processing power, we would like to schedule it to run on a different hardware. I'm aware that right now we could do that using OneDev agent and Docker, however, as we have a second Kubernetes cluster (different hardware and provider), we would like to run those builds on this second cluster.
Would it be possible?
I tried using OneDev agent and it started, but failed to run builds as we have build steps that relay on containers and there is no docker available on Kubernetes cluster on which OneDev agent is running.
Robin Shen commented 1 week ago
You may add two k8s executors. The first executor uses default setting to use current cluster. The second executor should be configured with a config file in more settings to point to the other cluster. Then configure your memory demanding jobs to run on second executor.
We have a Kubernetes cluster on which OneDev is running and we are using for builds with Kubernetes executor. However, as one of the builds takes a lot of memory and processing power, we would like to schedule it to run on a different hardware. I'm aware that right now we could do that using OneDev agent and Docker, however, as we have a second Kubernetes cluster (different hardware and provider), we would like to run those builds on this second cluster.
Would it be possible?
I tried using OneDev agent and it started, but failed to run builds as we have build steps that relay on containers and there is no docker available on Kubernetes cluster on which OneDev agent is running.