Sub topic 14
Observing and troubleshooting ARC
This chapter assumes you have installed the controller and a runner scale set with Helm, and that you can use kubectl. It shows where to look when jobs do not start, and how to read what ARC reports.
Know where each component lives
ARC splits its pods across two namespaces. Knowing which pod owns which job narrows most problems quickly.
| Namespace | Pod | What it does |
|---|---|---|
| arc-systems | Controller | Reconciles ARC resources and creates runner pods |
| arc-systems | Listener | Holds a connection to GitHub and reports queued jobs |
| arc-runners | Runner pods | Run one job each, then disappear |
Inspect the pods
Start with the pod list in both namespaces.
kubectl get pods -n arc-systems
kubectl get pods -n arc-runnersYou should see one controller pod and one listener pod in arc-systems. The listener pod is created by the controller for each scale set. If it is missing, the controller could not create it, so read the controller logs next.
Read the logs
Pod names include generated suffixes, so look them up first.
kubectl get pods -n arc-systems
kubectl logs -n arc-systems <controller-pod-name>
kubectl logs -n arc-systems <listener-pod-name>The controller log shows reconciliation errors, such as a missing secret or a failed API call. The listener log shows the messages it receives from GitHub about queued and assigned jobs. If the listener shows jobs arriving but no runner pods appear, the problem is in the controller or in cluster capacity.
Check the ARC resources
ARC stores its state in custom resources. Listing them shows whether a scale set is healthy.
kubectl get autoscalingrunnersets -n arc-runners
kubectl get ephemeralrunnersets -n arc-runners
kubectl get ephemeralrunners -n arc-runners
kubectl describe autoscalingrunnerset -n arc-runnersThe describe output lists events and the current and desired runner counts. Compare them with your minRunners and maxRunners values.
Diagnose common problems
- Job stays queued, no listener pod. The controller cannot authenticate. Check that the secret named in
githubConfigSecretexists in the runner namespace and contains thegithub_tokenkey. Confirm the token has access to the repository or organization ingithubConfigUrl. - Job stays queued, listener is running. The
runs-onvalue probably does not match the Helm installation name. Names are case sensitive. - Runner pod stays Pending. Run
kubectl describe podand read the Events section. Typical causes are requests larger than any node can offer, unmatched node selectors, or taints without tolerations. - Runner pod ends in ImagePullBackOff. The image name is wrong, or the cluster has no credentials for the registry.
- Runner pod is killed with OOMKilled. The memory limit is too low for the job. Raise it in the pod template.
- Jobs wait even though capacity exists. Check whether the scale set has reached
maxRunners. ARC does not create runners beyond that limit.
Check events across the namespace
Cluster events often explain scheduling failures that pod logs cannot.
kubectl get events -n arc-runners --sort-by=.metadata.creationTimestampExercise
A workflow using runs-on: arc-runner-set stays queued. kubectl get pods -n arc-systems shows a running controller and listener, and kubectl get pods -n arc-runners shows no pods. Which two things do you check next?
Show answer
First check the runs-on value against the Helm installation name, because a mismatch means the listener never receives the job. Then run kubectl describe autoscalingrunnerset -n arc-runners and the controller logs, looking for errors and for whether the scale set is already at maxRunners.