Actions Runner Controller (ARC) setup on Kubernetes, step by step
Install Actions Runner Controller (ARC) with the gha-runner-scale-set-controller and gha-runner-scale-set Helm charts: GitHub App auth, labels and limits.
In this series26 guides, you're on Actions Runner Controller (ARC)
In this article we will go over how to install GitHub Actions Runner Controller (ARC), which runs and autoscales self-hosted runners on Kubernetes. For the purpose of this article we will use MicroK8s ↗ which is a lightweight Kubernetes distribution that is easy to install and manage. If you have a standard Kubernetes cluster, you can use it instead and simply remove the microk8s prefix from the commands.
The variant that we will install is the one officially maintained by GitHub, which uses Runner Scale Sets (gha-runner-scale-set-controller). Instead of relying on webhooks emitted by GitHub, the listener opens an outbound long poll connection to the GitHub Actions service to receive new jobs. The advantage of this approach is that you do not need to expose any public service to the internet.
This article assumes that you have created a brand new server somewhere, with Ubuntu 24.04 and at least 8GB of RAM. Hetzner Cloud servers are perfect for that. It was last checked with ARC chart version 0.15.1 (November 2026); the releases ↗ list the latest.
Install MicroK8s#
Log into your server and run the following commands:
sudo snap install microk8s --classicsudo usermod -a -G microk8s $USERnewgrp microk8sThe last two commands let your user run microk8s without sudo: usermod adds it to the microk8s group, and newgrp applies the new group to your current shell (logging out and back in works too). If you log in as root, skip them.
Run the following command to verify that MicroK8s is running:
microk8s status --wait-ready # might take a whileYou should see something like:
microk8s is runninghigh-availability: no datastore master nodes: 127.0.0.1:19001 datastore standby nodes: none...Inspect the nodes in your cluster:
microk8s kubectl get nodesYou should see something like:
NAME STATUS ROLES AGE VERSIONarc Ready <none> 99s v1.34.1Helm comes preinstalled with MicroK8s, as microk8s helm, so you can install ARC’s charts right away.
Install the runner controller#
microk8s helm install arc \ --namespace "arc-systems" \ --create-namespace \ --version 0.15.1 \ oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controllerYou should see something like:
NAME: arcLAST DEPLOYED: Wed Nov 4 11:53:39 2026NAMESPACE: arc-systemsSTATUS: deployedREVISION: 1TEST SUITE: NoneNOTES:Thank you for installing gha-runner-scale-set-controller.
Your release is named arc.At this point, the runner controller is installed and running in your cluster in the arc-systems namespace.
Pin --version, and install the controller and every scale set at the same version: the controller deletes any scale set installed with a different minor version of the chart. Helm also never upgrades ARC’s custom resource definitions (CRDs), so GitHub’s upgrade steps ↗ reinstall ARC instead: uninstall every scale set and wait for its resources to be cleaned up, uninstall the controller, delete the actions.github.com CRDs if the new version changes them, then install the controller and the scale sets at the new version. Removing a runner scale set has the commands.
Create the arc-runners namespace#
This namespace will host the runners that will be created by the runner scale sets:
microk8s kubectl create namespace arc-runnersNow, before you can create the runner scale sets, you need to create a private GitHub App that will be used to authenticate API calls with GitHub.
Create private GitHub App and register it with ARC#
To create a private GitHub App for your ARC deployment, go to your organization settings and click on:
"Developer settings" -> "GitHub Apps" -> "New GitHub App"Fill in the form as follows:
Once created:
- Take a note of the App ID (the app’s Client ID works too).
- Generate a Private Key.
- Click on the “Install App” link in the sidebar, select your organization, and choose the repositories it has access to.
Finally, take a note of the Installation ID in the browser URL. URL format is:
https://github.com/organizations/ORGANIZATION_NAME/settings/installations/INSTALLATION_IDAt this point, set the following environment variables on your server:
ORGANIZATION_NAME: The name of your organization (e.g.runs-on-demo).APP_ID: The App ID you got from the GitHub App you created.INSTALLATION_ID: The Installation ID you got after installing the GitHub App in your organization.PRIVATE_KEY_PATH: Path to the private key file on your server (upload it first if needed).
You can now create a secret with the private key and application details in your Kubernetes cluster:
microk8s kubectl create secret generic pre-defined-secret \ --namespace=arc-runners \ --from-literal=github_app_id="$APP_ID" \ --from-literal=github_app_installation_id="$INSTALLATION_ID" \ --from-file=github_app_private_key="$PRIVATE_KEY_PATH"Once this secret is created, you can proceed to create the runner scale sets that will be used to run your workflows.
Create one (or multiple) runner scale set(s)#
A runner scale set is managed by a single controller, and is used to launch runners of a specific configuration (image, privileges, etc) whenever a new job requests it.
The name you give to that runner scale set (RUNNER_SCALE_SET_LABEL in the following commands, the Helm release name unless you set runnerScaleSetName) is what you use in runs-on:. Since ARC 0.14.0 a scale set can also have extra labels, set with scaleSetLabels in the chart values, so jobs can target it by name or by label (see below). Scale set names are unique within their runner group.
At this point, set the following environment variables on your server:
ORGANIZATION_NAME: The name of your organization (e.g.runs-on-demo).RUNNER_SCALE_SET_LABEL: The label of the runner scale set you want to create (e.g.arc-custom-runners-type1).
Then create the runner scale set:
microk8s helm install "${RUNNER_SCALE_SET_LABEL}" \ --namespace "arc-runners" \ --create-namespace \ --set githubConfigUrl="https://github.com/${ORGANIZATION_NAME}" \ --set githubConfigSecret="pre-defined-secret" \ --version 0.15.1 \ oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-setYou should see something like:
NAME: arc-custom-runners-type1LAST DEPLOYED: Wed Nov 4 12:00:24 2026NAMESPACE: arc-runnersSTATUS: deployedREVISION: 1TEST SUITE: NoneNOTES:Thank you for installing gha-runner-scale-set.You can verify your Kubernetes resources with the following command:
microk8s helm list -AWhich should return something like:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSIONarc arc-systems 1 2026-11-04 11:53:39.488371231 +0000 UTC deployed gha-runner-scale-set-controller-0.15.1 0.15.1arc-custom-runners-type1 arc-runners 1 2026-11-04 12:00:24.77941948 +0000 UTC deployed gha-runner-scale-set-0.15.1 0.15.1You can now go to your organization settings, click on “Actions” -> “Runners”, and see your new runner scale set coming online.
At this point, you have two pods running in the arc-systems namespace, one for the main ARC controller, and one listener for your runner scale set, which listens for new jobs and launches runners when needed:
microk8s kubectl get pods -n arc-systemsWhich should return something like:
NAME READY STATUS RESTARTS AGEarc-custom-runners-type1-754b578d-listener 1/1 Running 0 8m10sarc-gha-rs-controller-5866fb9f96-8trgs 1/1 Running 0 14mYou can add another runner scale set by simply running the same command with a different label, for example:
microk8s helm install arc-custom-runners-type2 \ --namespace "arc-runners" \ --create-namespace \ --set githubConfigUrl="https://github.com/${ORGANIZATION_NAME}" \ --set githubConfigSecret="pre-defined-secret" \ --version 0.15.1 \ oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-setYou now have 3 pods running in the arc-systems namespace:
microk8s kubectl get pods -n arc-systemsNAME READY STATUS RESTARTS AGEarc-custom-runners-type1-754b578d-listener 1/1 Running 0 9m26sarc-custom-runners-type2-754b578d-listener 1/1 Running 0 2sarc-gha-rs-controller-5866fb9f96-8trgs 1/1 Running 0 16m
Adding labels to a scale set#
To route jobs by capability rather than by name, give the scale set labels in a values file. Replace ORGANIZATION_NAME with your organization’s name:
githubConfigUrl: https://github.com/ORGANIZATION_NAMEgithubConfigSecret: pre-defined-secretscaleSetLabels: - linux - x64 - largeminRunners: 0maxRunners: 20The chart key is scaleSetLabels. As of November 2026, GitHub’s docs use runnerScaleSetLabels instead, which the chart ignores without an error.
ARC sends a scale set’s labels to GitHub only when it creates the scale set, so helm upgrade doesn’t change them. To add or change labels, uninstall the scale set first:
microk8s helm uninstall arc-custom-runners-type1 -n arc-runnersUntil the scale set is back, jobs that target it wait in the queue (GitHub fails a job that waits more than 24 hours). ARC removes the scale set from GitHub in the background. Wait until it is gone from “Actions” -> “Runners” in your organization settings, then install it again with the values file:
microk8s helm install arc-custom-runners-type1 \ --namespace arc-runners \ --version 0.15.1 \ -f values-type1.yaml \ oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-setThe labels then appear next to the scale set’s name on that page, and a job with runs-on: [linux, large] can land on this scale set. minRunners keeps warm runners waiting for jobs (at the cost of idle pods), and maxRunners caps how many pods the scale set creates.
Jobs match these labels the way they match any self-hosted runner’s labels, with one difference: a scale set has only its name and the labels you list, and none of the default self-hosted, OS and architecture labels. To limit which repositories can use the scale set, put it in a runner group: create the group first, then set runnerGroup to its name in the values file.
Docker and resource requests#
The runner pods above have no Docker daemon, so jobs with container: or services:, and docker commands, fail on them. They also have no resource requests, so Kubernetes reserves no CPU or memory for a job. A values file can add both:
githubConfigUrl: https://github.com/ORGANIZATION_NAMEgithubConfigSecret: pre-defined-secretcontainerMode: type: dind # adds a privileged container that runs the Docker daemontemplate: spec: containers: - name: runner # must stay "runner" image: ghcr.io/actions/actions-runner:latest command: ["/home/runner/run.sh"] resources: requests: cpu: "1" memory: 2GiInstall it as a new scale set and target it with runs-on: arc-docker-runners:
microk8s helm install arc-docker-runners \ --namespace arc-runners \ --version 0.15.1 \ -f values-docker.yaml \ oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-setKubernetes then reserves 1 CPU and 2 GiB of memory for each runner container, and schedules only as many runner pods as the node has room for: the others wait as Pending until a pod finishes. The dind container that runs Docker gets no requests of its own, so the containers a job starts with Docker aren’t counted. A request doesn’t cap what a job uses: set limits for that.
The other container mode, Kubernetes mode, runs container jobs and services in pods of their own instead of Docker: see GitHub’s Using Kubernetes mode ↗. Its kubernetes type needs volumes provisioned on demand (on MicroK8s, run microk8s enable hostpath-storage and set storageClassName: microk8s-hostpath in kubernetesModeWorkVolumeClaim), while kubernetes-novolume needs none.
Verify that the installation is working by launching a job#
It’s finally time to try to launch a job to see if everything works.
Use a private repository of your organization. A scale set joins the Default runner group unless you set runnerGroup, and public repositories can’t use a runner group until you allow them in the group’s settings. Weigh the risks of self-hosted runners on public repositories before you allow them.
Create a new workflow YAML file in that repository, for example:
name: Test ARC
on: workflow_dispatch: push: branches: [main]
jobs: test: runs-on: arc-custom-runners-type1 steps: - run: echo "Hello, world!"Push the file to your repository. You should see your workflow being executed by one of your runners, which will start in the arc-runners namespace:
microk8s kubectl get pods -n arc-runnersWhich should return something like:
NAME READY STATUS RESTARTS AGEarc-custom-runners-type1-cbn68-runner-nxj9x 0/1 ContainerCreating 0 26sAfter a little while, the runner should be up and the job completed:
If the job stays queued (“Waiting for a runner to pick up this job”), check:
- the runner group: in your organization settings, “Actions” -> “Runner groups” sets which repositories can use each group. The repositories you chose when installing the GitHub App play no part in this.
- the labels:
runs-on:must match the scale set’s name, or the labels listed next to it under “Actions” -> “Runners”. - the listener’s logs:
microk8s kubectl logs -n arc-systems -l app.kubernetes.io/component=runner-scale-set-listener.
Removing a runner scale set#
If at any point you want to remove a runner scale set, you can do so with the following command:
microk8s helm uninstall "${RUNNER_SCALE_SET_LABEL}" -n arc-runnersThis will then remove the runner scale set from the GitHub UI as well. Note that it will not work if you have already removed the main controller (from the arc-systems namespace), so make sure to remove runner scale sets first if you want to uninstall ARC.
Once every scale set is gone, uninstall the controller:
microk8s helm uninstall arc -n arc-systemsHelm leaves ARC’s CRDs in the cluster. Delete them too to remove ARC completely, or before installing a version that changes them:
microk8s kubectl delete crd \ autoscalingrunnersets.actions.github.com \ autoscalinglisteners.actions.github.com \ ephemeralrunnersets.actions.github.com \ ephemeralrunners.actions.github.comConsiderations#
ARC is quite easy to set up, but there are a few things you should be aware of:
- everything runs in a container, from an image (
ghcr.io/actions/actions-runner) with a very limited set of software installed. You will need to adjust your workflows, and create and maintain your own images if you need more software. ARC turns off the runner’s self-update, so a custom image must be rebuilt for each actions/runner release ↗: build itFROM ghcr.io/actions/actions-runner:<version>and let Renovate or Dependabot bump the tag. When GitHub stops sending jobs to outdated runners, ARC switches the scale set off until you deploy a newer image. The default:latestimage avoids this: GitHub republishes it with every runner release, and Kubernetes pulls it again for each runner pod. - container jobs and service containers need Docker-in-Docker (a privileged container in every runner pod) or Kubernetes mode (each container runs as a pod of its own, every job must have a
container:by default, and container actions can’t be built from a Dockerfile). Since ARC 0.12.0, on Kubernetes 1.29 or later, the Docker-in-Docker container is a native sidecar: the runner container starts only once the Docker daemon answersdocker info, and Docker stops after the runner exits.docker buildneeds Docker-in-Docker or a daemonless builder. For production, GitHub recommends a cluster dedicated to the runners, since workflows run arbitrary code. Many third-party actions also assume tools that aren’t in the image. - logs from the controller and listeners are hard to follow. Metrics exist (enable
metricsin the controller chart and scrape them with Prometheus; ARC ships a sample Grafana dashboard ↗), but log collection and alerting are yours to set up. - you must have a Kubernetes cluster running, irrespective of whether you have actual jobs running.
- for each variation of runner configuration (image, CPU, memory, privileges), you need a new runner scale set.
- a job’s pod size is fixed by its scale set, and big jobs compete for the same nodes as everything else in the cluster.
- runners are ephemeral: each pod runs one job and is then deleted, so a job doesn’t inherit the last one’s files. The pods still run inside your cluster and network, so the lock-down advice for self-hosted runners applies to them too.
Scale sets don’t require ARC or Kubernetes. Since 0.14.0, ARC talks to GitHub through actions/scaleset ↗, a Go library (in public preview as of November 2026) that you can also use to write your own autoscaler, starting runners as processes, containers or VMs (see Scaling beyond one machine).
Conclusion#
ARC can be a great choice if you are already comfortable with Kubernetes. RunsOn (this site) is an alternative to ARC without Kubernetes: it runs each job on a fresh EC2 instance in your AWS account, from images compatible with GitHub’s runner images. Its Fleet mode also uses runner scale sets: a platform team defines and publishes the runners, and workflows pick one with a label such as runs-on/fleet=linux-small/env=production.