-
-
Save carl-reverb/05bb00856a7e5da70e1020fba65bc1ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## maxRunners is the max number of runners the autoscaling runner set will scale up to. | |
maxRunners: 16 | |
## minRunners is the min number of idle runners. The target number of runners created will be | |
## calculated as a sum of minRunners and the number of jobs assigned to the scale set. | |
minRunners: 1 | |
controllerServiceAccount: | |
name: gha-runner-scale-set-controller-gha-rs-controller | |
namespace: actions-runner-system | |
## Container mode is an object that provides out-of-box configuration | |
## for dind and kubernetes mode. Template will be modified as documented under the | |
## template object. | |
## | |
## If any customization is required for dind or kubernetes mode, containerMode should remain | |
## empty, and configuration should be applied to the template. | |
containerMode: | |
type: "kubernetes" ## type can be set to dind or kubernetes | |
## the following is required when containerMode.type=kubernetes | |
kubernetesModeWorkVolumeClaim: | |
accessModes: ["ReadWriteOnce"] | |
storageClassName: "ebs-gp3-ephemeral" | |
resources: | |
requests: | |
storage: 1Gi | |
## template is the PodSpec for each runner Pod | |
## For reference: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec | |
template: | |
## template.spec will be modified if you change the container mode | |
## with containerMode.type=dind, we will populate the template.spec with following pod spec | |
## template: | |
## spec: | |
## initContainers: | |
## - name: init-dind-externals | |
## image: ghcr.io/actions/actions-runner:latest | |
## command: ["cp", "-r", "-v", "/home/runner/externals/.", "/home/runner/tmpDir/"] | |
## volumeMounts: | |
## - name: dind-externals | |
## mountPath: /home/runner/tmpDir | |
## containers: | |
## - name: runner | |
## image: ghcr.io/actions/actions-runner:latest | |
## command: ["/home/runner/run.sh"] | |
## env: | |
## - name: DOCKER_HOST | |
## value: unix:///run/docker/docker.sock | |
## volumeMounts: | |
## - name: work | |
## mountPath: /home/runner/_work | |
## - name: dind-sock | |
## mountPath: /run/docker | |
## readOnly: true | |
## - name: dind | |
## image: docker:dind | |
## args: | |
## - dockerd | |
## - --host=unix:///run/docker/docker.sock | |
## - --group=$(DOCKER_GROUP_GID) | |
## env: | |
## - name: DOCKER_GROUP_GID | |
## value: "123" | |
## securityContext: | |
## privileged: true | |
## volumeMounts: | |
## - name: work | |
## mountPath: /home/runner/_work | |
## - name: dind-sock | |
## mountPath: /run/docker | |
## - name: dind-externals | |
## mountPath: /home/runner/externals | |
## volumes: | |
## - name: work | |
## emptyDir: {} | |
## - name: dind-sock | |
## emptyDir: {} | |
## - name: dind-externals | |
## emptyDir: {} | |
###################################################################################################### | |
## with containerMode.type=kubernetes, we will populate the template.spec with following pod spec | |
## template: | |
spec: | |
securityContext: | |
fsGroup: 123 | |
containers: | |
- name: runner | |
image: ghcr.io/actions/actions-runner:latest | |
command: ["/home/runner/run.sh"] | |
env: | |
- name: ACTIONS_RUNNER_CONTAINER_HOOK_TEMPLATE | |
value: /home/runner/_service_account_hook_extension/extension.yaml | |
volumeMounts: | |
- name: service-account-hook-extension | |
mountPath: /home/runner/_service_account_hook_extension | |
volumes: | |
- name: service-account-hook-extension | |
configMap: | |
name: 'gha-runner-scale-set-hook-extension' | |
tolerations: | |
- key: workload | |
value: gha-runners | |
operator: Equal | |
effect: NoSchedule | |
nodeSelector: | |
hostgroup.class: gha-runners-amd64 | |
## env: | |
## - name: ACTIONS_RUNNER_CONTAINER_HOOKS | |
## value: /home/runner/k8s/index.js | |
## - name: ACTIONS_RUNNER_POD_NAME | |
## valueFrom: | |
## fieldRef: | |
## fieldPath: metadata.name | |
## - name: ACTIONS_RUNNER_REQUIRE_JOB_CONTAINER | |
## value: "true" | |
## volumeMounts: | |
## - name: work | |
## mountPath: /home/runner/_work | |
## volumes: | |
## - name: work | |
## ephemeral: | |
## volumeClaimTemplate: | |
## spec: | |
## accessModes: [ "ReadWriteOnce" ] | |
## storageClassName: "local-path" | |
## resources: | |
## requests: | |
## storage: 1Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment