Can I have my Kubernetes CI runners to autoscale?

I’d like to have my own runners on GKE. But it will only run on a g1-micro minimum, and that costs about 30$ to keep running 24/7.

Is there a way to have Gitlab spin runners down to 0 when not running tests? I tried setting autoscale with a minimum of 0, but GL lost the runner and I had to add it again manually.

2 Likes

I’m also interested in knowing if this is an option. An autoscaling GKE cluster seems like a perfect fit for autoscaling gitlab runners, right?

have 2 node pools. One system-pod-pool is just to have the system pods with no auto scale. The other runner-job-pool with num nodes:0 and autoscale min:0 max:N

The system-pod-pool can be 1GB/1vCPU