Sub topic 6
Installing the controller
This chapter installs the ARC controller with Helm and checks that it is healthy. It also covers what the chart creates, how to configure it, and the errors that most often block a first install.
Prerequisites
This chapter assumes you already have the following:
- A Kubernetes cluster and
kubectlconfigured to reach it, with permission to create namespaces, CRDs, cluster roles, and deployments. - Helm 3.8 or later. Support for OCI registries is stable from that version.
- The architecture from the previous chapter: the controller watches
AutoscalingRunnerSetresources and creates a listener for each one.
You do not need GitHub credentials for this step. The controller does not talk to GitHub on its own. Credentials are supplied later, when you install a runner scale set.
What the controller does
The controller is a Kubernetes deployment that runs one pod. It reconciles a set of custom resources that ARC adds to the cluster:
AutoscalingRunnerSet: the desired state of one runner scale set.AutoscalingListener: the pod that listens to GitHub for job demand.EphemeralRunnerSet: the group of runners that currently exist.EphemeralRunner: a single runner and its pod.
The controller does not run jobs and does not decide how many runners to create. It creates and repairs the listener and the runner resources. The listener reports how many runners GitHub needs, and the controller makes the cluster match.
Install the controller
Install the chart from GitHub's OCI registry into its own namespace:
helm install arc \
--namespace arc-systems \
--create-namespace \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controllerEach part of the command does a specific job:
arcis the Helm release name. You choose it, and it prefixes the names of the resources the chart creates.--namespace arc-systemsplaces the controller in a dedicated namespace. The name is a convention from GitHub's documentation, not a requirement.--create-namespacecreates the namespace if it does not exist.- The
oci://URL is the chart location. There is nohelm repo addstep, because OCI charts are pulled directly.
The command installs the latest chart version. In a real environment, pin a version so that installs are repeatable:
helm install arc \
--namespace arc-systems \
--create-namespace \
--version <CHART_VERSION> \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controllerReplace <CHART_VERSION> with a released version. You will need the same version for the scale set chart later, because the two charts are released together and a version mismatch can cause failures.
Verify the installation
Check the pods first:
kubectl get pods -n arc-systemsA healthy result shows one controller pod in the Running state with 1/1 ready. The pod name starts with the release name, for example arc-gha-rs-controller-<hash>. At this point there is no listener pod. The listener appears only after you install a runner scale set.
Then confirm that the custom resource definitions exist:
kubectl get crd | grep actions.github.comYou should see definitions for autoscalinglisteners, autoscalingrunnersets, ephemeralrunners, and ephemeralrunnersets. If they are missing, the chart did not install its CRDs, and no scale set can work.
Finally, read the controller log:
kubectl logs -n arc-systems deployment/arc-gha-rs-controllerThe log should show the manager starting and its controllers beginning to watch resources. Repeated errors about permissions or missing CRDs mean the install is incomplete.
Configure the controller with values
The defaults work for most clusters. To change them, write a values file and pass it with -f. Useful settings include:
| Value | Purpose |
|---|---|
| `replicaCount` | Number of controller replicas. Use more than one for availability with leader election. |
| `image.tag` | Controller image version. Defaults to the chart's app version. |
| `imagePullSecrets` | Secrets for pulling the controller image from a private registry or mirror. |
| `flags.watchSingleNamespace` | Restricts the controller to one namespace instead of the whole cluster. |
| `flags.logLevel` | Log verbosity, such as `debug`, `info`, `warn`, or `error`. |
| `resources` | Requests and limits for the controller pod. |
| `nodeSelector`, `tolerations`, `affinity` | Scheduling rules for the controller pod. |
Check the exact names against the chart you install, because values can change between chart versions. List them with:
helm show values \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controllerAn example values file that raises log detail and gives the controller a modest resource budget:
replicaCount: 1
flags:
logLevel: "debug"
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
memory: 256MiApply it at install time with helm install arc -f controller-values.yaml .... Use the same release name, namespace, and chart location as before. To change an existing install, use helm upgrade.
Cluster-wide and single-namespace modes
By default, the controller watches all namespaces. That lets one controller serve scale sets in any namespace, which is the usual design: one controller in arc-systems and several scale sets in other namespaces.
The flags.watchSingleNamespace value narrows the controller to one namespace. Use it when teams share a cluster and each team runs its own controller. Be aware of two consequences:
- The chart creates namespaced roles in place of cluster-wide ones for the resources it manages, so the controller needs fewer privileges.
- Each controller must have a distinct release name and a distinct set of namespaces, or the controllers will compete over the same resources.
CRDs are cluster-scoped and shared. Installing several controllers does not give each one its own CRD version.
Common errors
| Symptom | Likely cause | What to check |
|---|---|---|
| `Error: INSTALLATION FAILED: ... unauthorized` or a pull failure from `ghcr.io` | Network policy, proxy, or a registry mirror blocks access | Test `helm pull` of the chart from the same machine. Use a mirror and `imagePullSecrets` if needed. |
| `unknown flag` or OCI errors from Helm | Helm older than 3.8 | Run `helm version` and upgrade. |
| Pod stays in `ImagePullBackOff` | The cluster cannot reach `ghcr.io` | `kubectl describe pod` shows the image reference and the pull error. |
| Pod is `Pending` | Node selector, taint, or no capacity | `kubectl describe pod` shows the scheduling event. |
| `CrashLoopBackOff` | Missing RBAC or CRDs | Read the pod logs with `kubectl logs --previous`. |
| `rendered manifests contain a resource that already exists` | Leftover CRDs or cluster roles from a previous install | List them, and remove only the ones you know belong to the old release. |
Uninstall
To remove the controller, delete the scale sets first, then the controller:
helm uninstall arc -n arc-systemsIf you uninstall the controller while scale sets still exist, their resources can be left with finalizers that nothing is left to clear, and deleting them then needs manual intervention. Always uninstall scale sets before the controller.
Summary of the install flow
- Confirm Helm 3.8 or later and
kubectlaccess. - Choose a chart version and a namespace.
- Install the chart, with a values file if you need non-default settings.
- Check that the controller pod is
Runningand the CRDs exist. - Read the controller log for errors.
The controller is now waiting for work. The next chapter installs a runner scale set, which gives it something to manage.
Exercise
You installed the controller and kubectl get pods -n arc-systems shows one Running pod. A colleague asks why there is no listener pod. What is the answer, and what would you do next?
Show answer
The listener is created by the controller for each AutoscalingRunnerSet, and no scale set exists yet. Installing only the controller never produces a listener. The next step is to install a runner scale set with its own Helm release, which creates the AutoscalingRunnerSet that triggers the listener.
Exercise
Why should you pin --version on the controller install, and which other install must use the same version?
Show answer
Pinning makes installs repeatable, so a new chart release does not change your cluster unexpectedly. The runner scale set chart must use the same version, because the two charts are released together and mismatched versions can leave scale sets without a working listener.
Exercise
A controller pod is in CrashLoopBackOff. Name the command that shows why it crashed, and two likely causes.
Show answer
Run kubectl logs --previous against the controller pod (with -n arc-systems) to read the log from the crashed container. Likely causes are missing CRDs and missing RBAC permissions.