Sub topic 7
Deploying a runner scale set
This chapter assumes you already installed the ARC controller in the arc-systems namespace and can use kubectl and helm against your cluster. You should also know what a Kubernetes secret is and how a Helm values file overrides chart defaults.
A runner scale set is the unit ARC scales. You install one Helm release per scale set, and each release creates an AutoscalingRunnerSet resource. The controller watches that resource, starts a listener pod for it, and creates ephemeral runner pods when GitHub reports queued jobs.
Prepare the namespace and credentials
Runner pods live in their own namespace, separate from the controller. Create it, then store your GitHub credential as a secret there. The secret must be in the same namespace as the scale set.
kubectl create namespace arc-runners
kubectl create secret generic pre-defined-secret \
--namespace arc-runners \
--from-literal=github_token='<YOUR_PAT>'Creating the secret yourself keeps the token out of the Helm command line and out of your shell history in the helm install call. The chart reads the token from the key github_token. A GitHub App uses different keys, which the authentication chapter covers.
Write the values file
The values file tells the chart where to register runners and how far to scale.
githubConfigUrl: "https://github.com/<your-org>/<your-repo>"
githubConfigSecret: pre-defined-secret
minRunners: 0
maxRunners: 10
containerMode:
type: "dind"| Value | Meaning |
|---|---|
| `githubConfigUrl` | The repository, organization, or enterprise the runners register to. |
| `githubConfigSecret` | The name of the secret that holds the credential. |
| `minRunners` | Runners kept alive even when no jobs are queued. |
| `maxRunners` | The upper limit on concurrent runner pods. |
| `containerMode.type` | How jobs run containers. `dind` starts a Docker daemon alongside the runner. |
Install the scale set
helm install arc-runner-set \
--namespace arc-runners \
-f values.yaml \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-setThe release name, arc-runner-set, becomes the scale set's installation name. Workflows use this name in runs-on, so choose it deliberately. Changing it later means reinstalling and updating every workflow that refers to it.
Check that it registered
After the install, the controller creates a listener pod in the controller's namespace. Check both namespaces.
kubectl get pods -n arc-systems
kubectl get pods -n arc-runners --watchIn arc-systems you should see the controller pod and a listener pod whose name starts with arc-runner-set. With minRunners: 0, the arc-runners namespace stays empty until a job arrives. That is expected, not a fault. Runner pods appear when a job is queued and disappear after it finishes.
In GitHub, the scale set also appears under the repository's Settings, in Actions, then Runners. If it does not show up there, the credential or githubConfigUrl is usually wrong.
Common errors
- The scale set never appears in GitHub. Check that the secret is in
arc-runners, that the key isgithub_token, and that the token can administer runners for the target scope. - No listener pod exists. The controller is not running or cannot reach the scale set. Check
kubectl get pods -n arc-systemsand the controller logs. - Workflows stay queued. The
runs-onvalue must match the release name exactly.
Exercise
You install a scale set with helm install build-pool ... and minRunners: 0. Right after the install, kubectl get pods -n arc-runners shows no pods. Is something broken, and what value would a workflow use in runs-on?
Show answer
Nothing is broken. With minRunners: 0, ARC creates runner pods only when jobs are queued. The listener pod runs in the controller's namespace, arc-systems. Workflows use runs-on: build-pool, the Helm release name.