Unable to set toleration to runner pods #3286
-
Hello, currently I'm unable to set toleration field to runner pods (i.e. they are not scheduled on desired node). However, adding it to template:
template:
spec:
tolerations:
- effect: NoSchedule
key: github
operator: Equal
value: runners
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
- name: ACTIONS_RUNNER_REQUIRE_JOB_CONTAINER
value: "false"
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: {} Maybe I'm placing it in the wrong place ? |
Beta Was this translation helpful? Give feedback.
Answered by
matan-legit
Feb 13, 2024
Replies: 1 comment
-
it should be under:
remove one template |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PaulMoney
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it should be under:
remove one template