Update values.yaml
This commit is contained in:
parent
3c4d403168
commit
ed1b322a88
|
|
@ -1,10 +1,10 @@
|
||||||
## githubConfigUrl is the GitHub url for where you want to configure runners
|
## githubConfigUrl is the GitHub url for where you want to configure runners
|
||||||
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
|
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
|
||||||
githubConfigUrl: ""
|
githubConfigUrl: "https://github.com/prosperllc"
|
||||||
|
|
||||||
## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
|
## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
|
||||||
## You can choose to use GitHub App or a PAT token
|
## You can choose to use GitHub App or a PAT token
|
||||||
githubConfigSecret:
|
githubConfigSecret: pre-defined-secret
|
||||||
### GitHub Apps Configuration
|
### GitHub Apps Configuration
|
||||||
## NOTE: IDs MUST be strings, use quotes
|
## NOTE: IDs MUST be strings, use quotes
|
||||||
#github_app_id: ""
|
#github_app_id: ""
|
||||||
|
|
@ -12,7 +12,7 @@ githubConfigSecret:
|
||||||
#github_app_private_key: |
|
#github_app_private_key: |
|
||||||
|
|
||||||
### GitHub PAT Configuration
|
### GitHub PAT Configuration
|
||||||
github_token: ""
|
##github_token: ""
|
||||||
## If you have a pre-define Kubernetes secret in the same namespace the gha-runner-scale-set is going to deploy,
|
## If you have a pre-define Kubernetes secret in the same namespace the gha-runner-scale-set is going to deploy,
|
||||||
## you can also reference it via `githubConfigSecret: pre-defined-secret`.
|
## you can also reference it via `githubConfigSecret: pre-defined-secret`.
|
||||||
## You need to make sure your predefined secret has all the required secret data set properly.
|
## You need to make sure your predefined secret has all the required secret data set properly.
|
||||||
|
|
@ -37,16 +37,16 @@ githubConfigSecret:
|
||||||
# - example.org
|
# - example.org
|
||||||
|
|
||||||
## maxRunners is the max number of runners the autoscaling runner set will scale up to.
|
## maxRunners is the max number of runners the autoscaling runner set will scale up to.
|
||||||
# maxRunners: 5
|
maxRunners: 20
|
||||||
|
|
||||||
## minRunners is the min number of idle runners. The target number of runners created will be
|
## 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.
|
## calculated as a sum of minRunners and the number of jobs assigned to the scale set.
|
||||||
# minRunners: 0
|
minRunners: 5
|
||||||
|
|
||||||
# runnerGroup: "default"
|
#runner-scale-set1"
|
||||||
|
|
||||||
## name of the runner scale set to create. Defaults to the helm release name
|
## name of the runner scale set to create. Defaults to the helm release name
|
||||||
# runnerScaleSetName: ""
|
#runnerScaleSetName: "runner-scale-set1"
|
||||||
|
|
||||||
## A self-signed CA certificate for communication with the GitHub server can be
|
## A self-signed CA certificate for communication with the GitHub server can be
|
||||||
## provided using a config map key selector. If `runnerMountPath` is set, for
|
## provided using a config map key selector. If `runnerMountPath` is set, for
|
||||||
|
|
@ -75,8 +75,8 @@ githubConfigSecret:
|
||||||
##
|
##
|
||||||
## If any customization is required for dind or kubernetes mode, containerMode should remain
|
## If any customization is required for dind or kubernetes mode, containerMode should remain
|
||||||
## empty, and configuration should be applied to the template.
|
## empty, and configuration should be applied to the template.
|
||||||
# containerMode:
|
containerMode:
|
||||||
# type: "dind" ## type can be set to dind or kubernetes
|
type: "dind" ## type can be set to dind or kubernetes
|
||||||
# ## the following is required when containerMode.type=kubernetes
|
# ## the following is required when containerMode.type=kubernetes
|
||||||
# kubernetesModeWorkVolumeClaim:
|
# kubernetesModeWorkVolumeClaim:
|
||||||
# accessModes: ["ReadWriteOnce"]
|
# accessModes: ["ReadWriteOnce"]
|
||||||
|
|
@ -88,7 +88,7 @@ githubConfigSecret:
|
||||||
# kubernetesModeServiceAccount:
|
# kubernetesModeServiceAccount:
|
||||||
# annotations:
|
# annotations:
|
||||||
|
|
||||||
## listenerTemplate is the PodSpec for each listener Pod
|
## template is the PodSpec for each listener Pod
|
||||||
## For reference: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
|
## For reference: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
|
||||||
# listenerTemplate:
|
# listenerTemplate:
|
||||||
# spec:
|
# spec:
|
||||||
|
|
@ -107,55 +107,55 @@ githubConfigSecret:
|
||||||
|
|
||||||
## template is the PodSpec for each runner Pod
|
## template is the PodSpec for each runner Pod
|
||||||
## For reference: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
|
## For reference: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
|
||||||
|
|
||||||
template:
|
template:
|
||||||
## template.spec will be modified if you change the container mode
|
spec:
|
||||||
## with containerMode.type=dind, we will populate the template.spec with following pod spec
|
initContainers:
|
||||||
## template:
|
- name: init-dind-externals
|
||||||
## spec:
|
image: us-docker.pkg.dev/prosper-prod-registry/images/actions-runner:latest
|
||||||
## initContainers:
|
command: ["cp", "-r", "-v", "/home/runner/externals/.", "/home/runner/tmpDir/"]
|
||||||
## - name: init-dind-externals
|
volumeMounts:
|
||||||
## image: ghcr.io/actions/actions-runner:latest
|
- name: dind-externals
|
||||||
## command: ["cp", "-r", "-v", "/home/runner/externals/.", "/home/runner/tmpDir/"]
|
mountPath: /home/runner/tmpDir
|
||||||
## volumeMounts:
|
containers:
|
||||||
## - name: dind-externals
|
- name: runner
|
||||||
## mountPath: /home/runner/tmpDir
|
image: ghcr.io/actions/actions-runner:latest
|
||||||
## containers:
|
command: ["/home/runner/run.sh"]
|
||||||
## - name: runner
|
env:
|
||||||
## image: ghcr.io/actions/actions-runner:latest
|
- name: DOCKER_HOST
|
||||||
## command: ["/home/runner/run.sh"]
|
value: unix:///var/run/docker.sock
|
||||||
## env:
|
volumeMounts:
|
||||||
## - name: DOCKER_HOST
|
- name: work
|
||||||
## value: unix:///var/run/docker.sock
|
mountPath: /home/runner/_work
|
||||||
## volumeMounts:
|
- name: dind-sock
|
||||||
## - name: work
|
mountPath: /var/run
|
||||||
## mountPath: /home/runner/_work
|
- name: dind
|
||||||
## - name: dind-sock
|
image: docker:dind
|
||||||
## mountPath: /var/run
|
args:
|
||||||
## - name: dind
|
- dockerd
|
||||||
## image: docker:dind
|
- --host=unix:///var/run/docker.sock
|
||||||
## args:
|
- --group=$(DOCKER_GROUP_GID)
|
||||||
## - dockerd
|
env:
|
||||||
## - --host=unix:///var/run/docker.sock
|
- name: DOCKER_GROUP_GID
|
||||||
## - --group=$(DOCKER_GROUP_GID)
|
value: "123"
|
||||||
## env:
|
- name: DOCKER_IPTABLES_LEGACY
|
||||||
## - name: DOCKER_GROUP_GID
|
value: '1'
|
||||||
## value: "123"
|
securityContext:
|
||||||
## securityContext:
|
privileged: true
|
||||||
## privileged: true
|
volumeMounts:
|
||||||
## volumeMounts:
|
- name: work
|
||||||
## - name: work
|
mountPath: /home/runner/_work
|
||||||
## mountPath: /home/runner/_work
|
- name: dind-sock
|
||||||
## - name: dind-sock
|
mountPath: /var/run
|
||||||
## mountPath: /var/run
|
- name: dind-externals
|
||||||
## - name: dind-externals
|
mountPath: /home/runner/externals
|
||||||
## mountPath: /home/runner/externals
|
volumes:
|
||||||
## volumes:
|
- name: work
|
||||||
## - name: work
|
emptyDir: {}
|
||||||
## emptyDir: {}
|
- name: dind-sock
|
||||||
## - name: dind-sock
|
emptyDir: {}
|
||||||
## emptyDir: {}
|
- name: dind-externals
|
||||||
## - name: dind-externals
|
emptyDir: {}
|
||||||
## emptyDir: {}
|
|
||||||
######################################################################################################
|
######################################################################################################
|
||||||
## with containerMode.type=kubernetes, we will populate the template.spec with following pod spec
|
## with containerMode.type=kubernetes, we will populate the template.spec with following pod spec
|
||||||
## template:
|
## template:
|
||||||
|
|
@ -189,8 +189,15 @@ template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: ghcr.io/actions/actions-runner:latest
|
image: us-docker.pkg.dev/prosper-prod-registry/images/actions-runner:latest
|
||||||
command: ["/home/runner/run.sh"]
|
command: ["/home/runner/run.sh"]
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "4"
|
||||||
|
memory: 8Gi
|
||||||
|
request:
|
||||||
|
cpu: "2"
|
||||||
|
memory: 4Gi
|
||||||
|
|
||||||
## Optional controller service account that needs to have required Role and RoleBinding
|
## Optional controller service account that needs to have required Role and RoleBinding
|
||||||
## to operate this gha-runner-scale-set installation.
|
## to operate this gha-runner-scale-set installation.
|
||||||
|
|
@ -198,6 +205,6 @@ template:
|
||||||
## In case the helm chart can't find the right service account, you can explicitly pass in the following value
|
## In case the helm chart can't find the right service account, you can explicitly pass in the following value
|
||||||
## to help it finish RoleBinding with the right service account.
|
## to help it finish RoleBinding with the right service account.
|
||||||
## Note: if your controller is installed to only watch a single namespace, you have to pass these values explicitly.
|
## Note: if your controller is installed to only watch a single namespace, you have to pass these values explicitly.
|
||||||
# controllerServiceAccount:
|
controllerServiceAccount:
|
||||||
# namespace: arc-system
|
namespace: prosper-runners
|
||||||
# name: test-arc-gha-runner-scale-set-controller
|
name: prosper-runner-controller-gha-rs-controller
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue