Checks
Controller Version
0.9.1
Deployment Method
Helm
Checks
To Reproduce
- Read these lines: https://github.com/actions/actions-runner-controller/blob/49490c4421aa8d58a8eb375fe7a539bdfe28b7a6/charts/gha-runner-scale-set/values.yaml#L76-L77
- Specify `template.spec` while keeping `containerMode.type=kubernetes`
- Everything works
Describe the bug
If any customization is required for dind or kubernetes mode, containerMode should remain
empty, and configuration should be applied to the template.
This is plain not true.
If you want kubernetes mode you have to specify containerMode.type=kubernetes otherwise you won't get the RBAC setup for you.
You are also pretty much forced to customize the template on EKS with because otherwise things do not work by default. (See: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/troubleshooting-actions-runner-controller-errors#error-access-to-the-path-homerunner_work_tool-is-denied)
Or if you want to add other environment variables to the runner..
Going into the chart you also see that the template is honoured even if containerMode.type is set.
Describe the expected behavior
Proper comment that is not misleading.
Link to relevant documentation if necessary.
Additional Context
values.yml that works in EKS for containerMode.type=kubernetes
controllerServiceAccount:
namespace: ...
name: ...
runnerScaleSetName: ...
githubConfigUrl: ...
maxRunners: 1
containerMode:
type: kubernetes
kubernetesModeWorkVolumeClaim:
accessModes: ["ReadWriteOnce"]
storageClassName: "ephemeral-storage"
resources:
requests:
storage: 5Gi
template:
spec:
# See https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/troubleshooting-actions-runner-controller-errors#error-access-to-the-path-homerunner_work_tool-is-denied
securityContext:
fsGroup: 123
containers:
- name: runner
image: ghcr.io/actions/actions-runner:latest
command: ["/home/runner/run.sh"]
Controller Logs
Runner Pod Logs
Checks
Controller Version
0.9.1
Deployment Method
Helm
Checks
To Reproduce
Describe the bug
This is plain not true.
If you want kubernetes mode you have to specify
containerMode.type=kubernetesotherwise you won't get the RBAC setup for you.You are also pretty much forced to customize the
templateon EKS with because otherwise things do not work by default. (See: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/troubleshooting-actions-runner-controller-errors#error-access-to-the-path-homerunner_work_tool-is-denied)Or if you want to add other environment variables to the runner..
Going into the chart you also see that the
templateis honoured even ifcontainerMode.typeis set.Describe the expected behavior
Proper comment that is not misleading.
Link to relevant documentation if necessary.
Additional Context
values.ymlthat works in EKS forcontainerMode.type=kubernetesController Logs
Runner Pod Logs