Sub topic 15
Upgrading ARC and recognizing the legacy community version
This chapter assumes you have installed the controller and a runner scale set with Helm, as in earlier chapters. You should be comfortable with helm list, kubectl get crd, and values files. It covers two things: telling the two generations of "Actions Runner Controller" apart, and upgrading the current one safely.
Two projects share the ARC name
Two systems are called Actions Runner Controller, and search results mix them. Installing from a legacy guide, or applying legacy documentation to a scale set install, causes confusing failures.
- Runner scale set mode is the one this tutorial uses. It lives in the
actions/actions-runner-controllerrepository and is supported by GitHub. Its charts aregha-runner-scale-set-controllerandgha-runner-scale-set, published as OCI artifacts underghcr.io/actions/actions-runner-controller-charts. - Legacy community ARC was the original controller. It is maintained by a community organization (
actions-runner-controlleron GitHub). Its chart is calledactions-runner-controllerand comes from a classic Helm repository, not an OCI registry.
| Aspect | Runner scale set mode | Legacy community ARC |
|---|---|---|
| Maintainer | GitHub | Community |
| Helm charts | `gha-runner-scale-set-controller`, `gha-runner-scale-set` | `actions-runner-controller` |
| Main resources | `AutoscalingRunnerSet`, `EphemeralRunnerSet`, `EphemeralRunner`, `AutoscalingListener` | `RunnerDeployment`, `HorizontalRunnerAutoscaler`, `RunnerSet`, `Runner` |
| API groups | `actions.github.com` | `actions.summerwind.dev` |
| Scaling signal | Listener long-polls GitHub's job queue | Webhook events or periodic polling |
| `runs-on` value | One installation name | A list of labels, such as `[self-hosted, linux]` |
| Webhook certificates | Not needed | Typically needs cert-manager |
Checking what a cluster runs
Inspect the CRDs and Helm releases to find out which generation is installed. Both can be present at once.
# Helm releases in all namespaces
helm list --all-namespaces
# Custom resource definitions from either generation
kubectl get crd | grep -E 'actions\.(github\.com|summerwind\.dev)'CRDs ending in actions.github.com mean scale set mode. CRDs ending in actions.summerwind.dev mean the legacy controller. Look for these signs in a workflow:
runs-on: [self-hosted, linux, x64]with custom labels usually targets legacy runners.runs-on: arc-runner-settargets a scale set.
Why upgrades need care
Helm installs files in a chart's crds/ directory only when the CRD does not already exist. helm upgrade never changes them. After you upgrade only the chart, the controller code can be new while the CRD schemas in the cluster are old. The new controller then reads fields the API server prunes, or the API server rejects fields the chart now sets.
The scale set CRDs embed a full pod template schema, so they are large. A client-side kubectl apply stores a copy of the object in an annotation and fails when that annotation exceeds its size limit. Use server-side apply for them.
The controller and scale set charts are also released together. Keep the two on the same version. Mixed versions are not a tested combination.
The upgrade procedure
The safe sequence is to drain, remove, update the CRDs, and reinstall. Your values file stays in version control, so the reinstall is repeatable.
Step 1: record the current state
helm list --all-namespaces
helm get values arc-runner-set --namespace arc-runners > values-backup.yamlIf your values.yaml is already in Git, this backup confirms that the file matches what is deployed. Differences mean someone changed the release by hand.
Step 2: drain and uninstall
Stop new work from reaching the scale set. Pause the workflows that target it, or accept that queued jobs will wait. Then watch the runner namespace until no runner pods are left that are still running jobs.
kubectl get pods --namespace arc-runners --watchUninstall each scale set first and the controller last. The controller is what cleans up the scale set's resources, so removing it first can leave resources stuck.
helm uninstall arc-runner-set --namespace arc-runners
helm uninstall arc --namespace arc-systemsStep 3: update the CRDs
Pull the target chart, look at which CRD files it ships, and apply them with server-side apply.
export ARC_VERSION=0.9.3 # set this to the release you chose
helm pull \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller \
--version "$ARC_VERSION" \
--untar
ls gha-runner-scale-set-controller/crds
kubectl apply --server-side --force-conflicts \
-f gha-runner-scale-set-controller/crds--force-conflicts lets server-side apply take ownership of fields that an earlier client-side apply or Helm install set. If the crds directory is missing in your target version, the release notes describe where that version ships its CRDs.
Step 4: reinstall at one version
Pass the same --version to both charts. Install the controller first, then the scale set with your saved values.
helm install arc \
--namespace arc-systems \
--create-namespace \
--version "$ARC_VERSION" \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
helm install arc-runner-set \
--namespace arc-runners \
--version "$ARC_VERSION" \
-f values.yaml \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-setReuse the same installation name, arc-runner-set here. Workflows reference that name in runs-on, so a different name breaks every workflow that targets it. The arc-runners namespace and its pre-defined-secret survive the uninstall, so you do not need to recreate them.
Step 5: verify
kubectl get pods --namespace arc-systems
kubectl get pods --namespace arc-runnersYou should see the controller pod and a listener pod in arc-systems. With minRunners: 0 you will see no runner pods until a job arrives. Dispatch the smoke test workflow from the earlier chapters and confirm that a runner pod appears, runs the job, and disappears.
Changing values without a full upgrade
Not every change needs the procedure above. If the chart version stays the same and you only change values such as maxRunners or the pod template, helm upgrade is enough.
helm upgrade arc-runner-set \
--namespace arc-runners \
--version "$ARC_VERSION" \
-f values.yaml \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-setPin --version here as well. Without it, Helm uses the newest chart, and the scale set chart can move ahead of the controller.
Keeping the runner image current
The chart version is not the only version that matters. The runner binary in your image is separate, and GitHub expects self-hosted runners to stay reasonably current. If you pin ghcr.io/actions/actions-runner to an old tag, or build a custom image from an old base, jobs can eventually be refused or behave differently. A practical routine is:
- Pin the runner image to a specific tag in your pod template, not
latest, so a node pulling the image later does not change your fleet unnoticed. - Rebuild custom images on a schedule from the newest runner base image.
- Roll the new tag out with
helm upgrade, since ephemeral runners pick up the new template on their next start.
Migrating from the legacy controller
You do not need to cut over in one step. The two generations use different API groups, so they can run in the same cluster. Use different namespaces and keep the workloads separate.
- Install the scale set controller and one scale set next to the legacy controller.
- Change one low-risk workflow from
runs-on: [self-hosted, linux]toruns-on: arc-runner-set. - Move workflows over in batches. Label-based selection does not carry over, so create one scale set for each distinct runner profile you used labels for.
- When no workflow targets the legacy runners, scale the legacy
RunnerDeploymentresources to zero and watch for queued jobs that never start. - Uninstall the legacy chart. Remove its CRDs only after you have deleted every legacy resource. Deleting a CRD deletes all the resources of that kind.
Common errors
- Runner pods never start after an upgrade. The CRDs are likely old. Compare
kubectl get crd autoscalingrunnersets.actions.github.com -o yamlwith the chart'scrdsdirectory, then reapply them. metadata.annotations: Too longwhen applying CRDs. You used client-side apply. Repeat with--server-side.- Jobs stay queued under a new name. The workflow's
runs-onstill names the old installation. Use the exact installation name. - Legacy instructions fail. Commands that reference
RunnerDeploymentor theactions-runner-controllerHelm repository apply to the legacy controller, not to this installation. - Controller and listener disagree. The controller and scale set charts are at different versions. Align them.
Exercise
Your cluster has CRDs named runnerdeployments.actions.summerwind.dev and autoscalingrunnersets.actions.github.com. A teammate says a workflow with runs-on: [self-hosted, linux] is stuck in the queue. Which generation is likely responsible for that workflow, and what do you change to move it to the scale set?
Show answer
The label list points to the legacy community controller, which matches runners by labels. Both generations are installed, which is allowed. To move the workflow, set runs-on to the scale set's installation name, for example runs-on: arc-runner-set. The scale set matches only on that single name, not on labels.
Exercise
You run helm upgrade on the controller chart to a newer version, but the new controller misbehaves. Name the most likely cause and the fix.
Show answer
Helm does not upgrade files in a chart's crds directory, so the cluster still has the old CRD schemas. Pull the target chart, apply its CRDs with kubectl apply --server-side --force-conflicts, and keep the controller and scale set charts on the same version. If the release notes call for it, uninstall the scale sets and controller first and reinstall.