-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure actions-runner MTU #7
Merged
Merged
Conversation
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
--- kubernetes/apps/actions-runner/runners Kustomization: flux-system/actions-runners HelmRelease: actions-runners/actions-runner-set
+++ kubernetes/apps/actions-runner/runners Kustomization: flux-system/actions-runners HelmRelease: actions-runners/actions-runner-set
@@ -26,14 +26,12 @@
keepHistory: false
upgrade:
cleanupOnFail: true
remediation:
retries: 3
values:
- containerMode:
- type: dind
controllerServiceAccount:
name: actions-runner-controller-gha-rs-controller
namespace: actions-controller
githubConfigSecret: actions-controller-github-auth
githubConfigUrl: https://github.com/immich-app
maxRunners: 3
@@ -41,10 +39,66 @@
runnerScaleSetName: mich
template:
spec:
containers:
- command:
- /home/runner/run.sh
+ env:
+ - name: DOCKER_HOST
+ value: unix:///run/docker/docker.sock
+ - name: RUNNER_WAIT_FOR_DOCKER_IN_SECONDS
+ value: '120'
image: ghcr.io/immich-app/actions-runner:main
imagePullPolicy: Always
name: runner
+ volumeMounts:
+ - mountPath: /home/runner/_work
+ name: work
+ - mountPath: /run/docker
+ name: dind-sock
+ readOnly: true
+ - args:
+ - dockerd
+ - --host=unix:///run/docker/docker.sock
+ - --group=$(DOCKER_GROUP_GID)
+ env:
+ - name: DOCKER_GROUP_GID
+ value: '123'
+ image: docker:dind
+ name: dind
+ securityContext:
+ privileged: true
+ volumeMounts:
+ - mountPath: /home/runner/_work
+ name: work
+ - mountPath: /run/docker
+ name: dind-sock
+ - mountPath: /home/runner/externals
+ name: dind-externals
+ - mountPath: /etc/docker/daemon.json
+ name: daemon-json
+ readOnly: true
+ subPath: daemon.json
+ initContainers:
+ - args:
+ - -r
+ - -v
+ - /home/runner/externals/.
+ - /home/runner/tmpDir/
+ command:
+ - cp
+ image: ghcr.io/immich-app/actions-runner:main
+ name: init-dind-externals
+ volumeMounts:
+ - mountPath: /home/runner/tmpDir
+ name: dind-externals
+ volumes:
+ - emptyDir: {}
+ name: work
+ - emptyDir: {}
+ name: dind-sock
+ - emptyDir: {}
+ name: dind-externals
+ - configMap:
+ name: docker-daemon-config
+ name: daemon-json
--- kubernetes/apps/actions-runner/runners Kustomization: flux-system/actions-runners ConfigMap: actions-runners/docker-daemon-config
+++ kubernetes/apps/actions-runner/runners Kustomization: flux-system/actions-runners ConfigMap: actions-runners/docker-daemon-config
@@ -0,0 +1,16 @@
+---
+apiVersion: v1
+data:
+ daemon.json: |-
+ {
+ "mtu": 1450
+ }
+kind: ConfigMap
+metadata:
+ labels:
+ app.kubernetes.io/name: actions-runners
+ kustomize.toolkit.fluxcd.io/name: actions-runners
+ kustomize.toolkit.fluxcd.io/namespace: flux-system
+ name: docker-daemon-config
+ namespace: actions-runners
+ |
bo0tzz
force-pushed
the
fix/actions-runner-mtu
branch
from
January 9, 2024 19:58
aac95b6
to
d2d13f3
Compare
--- HelmRelease: actions-runners/actions-runner-set AutoscalingRunnerSet: actions-runners/mich
+++ HelmRelease: actions-runners/actions-runner-set AutoscalingRunnerSet: actions-runners/mich
@@ -24,61 +24,68 @@
minRunners: 1
template:
spec:
restartPolicy: Never
serviceAccountName: mich-gha-rs-no-permission
initContainers:
- - name: init-dind-externals
- image: ghcr.io/immich-app/actions-runner:main
- command:
- - cp
- args:
+ - args:
- -r
- -v
- /home/runner/externals/.
- /home/runner/tmpDir/
+ command:
+ - cp
+ image: ghcr.io/immich-app/actions-runner:main
+ name: init-dind-externals
volumeMounts:
- - name: dind-externals
- mountPath: /home/runner/tmpDir
+ - mountPath: /home/runner/tmpDir
+ name: dind-externals
containers:
- name: runner
command:
- /home/runner/run.sh
image: ghcr.io/immich-app/actions-runner:main
imagePullPolicy: Always
env:
- name: DOCKER_HOST
value: unix:///run/docker/docker.sock
- name: RUNNER_WAIT_FOR_DOCKER_IN_SECONDS
value: '120'
volumeMounts:
- - name: work
- mountPath: /home/runner/_work
- - name: dind-sock
- mountPath: /run/docker
+ - mountPath: /home/runner/_work
+ name: work
+ - mountPath: /run/docker
+ name: dind-sock
readOnly: true
- - name: dind
- image: docker:dind
- args:
+ - args:
- dockerd
- --host=unix:///run/docker/docker.sock
- --group=$(DOCKER_GROUP_GID)
env:
- name: DOCKER_GROUP_GID
value: '123'
+ image: docker:dind
+ name: dind
securityContext:
privileged: true
volumeMounts:
- - name: work
- mountPath: /home/runner/_work
- - name: dind-sock
- mountPath: /run/docker
- - name: dind-externals
- mountPath: /home/runner/externals
+ - mountPath: /home/runner/_work
+ name: work
+ - mountPath: /run/docker
+ name: dind-sock
+ - mountPath: /home/runner/externals
+ name: dind-externals
+ - mountPath: /etc/docker/daemon.json
+ name: daemon-json
+ readOnly: true
+ subPath: daemon.json
volumes:
- - name: dind-sock
- emptyDir: {}
- - name: dind-externals
- emptyDir: {}
- - name: work
- emptyDir: {}
+ - emptyDir: {}
+ name: work
+ - emptyDir: {}
+ name: dind-sock
+ - emptyDir: {}
+ name: dind-externals
+ - configMap:
+ name: docker-daemon-config
+ name: daemon-json
|
bo0tzz
force-pushed
the
fix/actions-runner-mtu
branch
from
January 9, 2024 20:04
a2f6b48
to
563b9c9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.