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?

Please use the helm config with nodeSelector and tolerations. It looks promising. I am currently testing this and will post the details, if the cluster scales down consistently.

I am using the method mentioned in gitlab-runner/issues/4064