use dind-rootless image instead of two containers
This commit is contained in:
@@ -16,6 +16,8 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: gitea-actions-runner
|
app: gitea-actions-runner
|
||||||
spec:
|
spec:
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-for-gitea
|
- name: wait-for-gitea
|
||||||
image: busybox
|
image: busybox
|
||||||
@@ -29,7 +31,9 @@ spec:
|
|||||||
done
|
done
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: gitea/act_runner:latest
|
image: gitea/act_runner:0.2.11-dind-rootless
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
env:
|
env:
|
||||||
- name: GITEA_INSTANCE_URL
|
- name: GITEA_INSTANCE_URL
|
||||||
value: "http://gitea-int-service:3000/"
|
value: "http://gitea-int-service:3000/"
|
||||||
@@ -38,28 +42,16 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: gitea-runner-token
|
name: gitea-runner-token
|
||||||
key: token
|
key: token
|
||||||
- name: GITEA_RUNNER_NAME
|
- name: DOCKER_HOST
|
||||||
value: "k3s-dind-runner"
|
value: tcp://localhost:2376
|
||||||
- name: GITEA_RUNNER_LABELS
|
- name: DOCKER_CERT_PATH
|
||||||
value: "ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye,ubuntu-20.04:docker://node:16-bullseye"
|
value: /certs/client
|
||||||
|
- name: DOCKER_TLS_VERIFY
|
||||||
|
value: "1"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: var-run
|
- name: storage
|
||||||
mountPath: /var/run
|
mountPath: /data
|
||||||
- name: dind
|
|
||||||
image: docker:dind
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
env:
|
|
||||||
- name: DOCKER_TLS_CERTDIR
|
|
||||||
value: ""
|
|
||||||
volumeMounts:
|
|
||||||
- name: dind-storage
|
|
||||||
mountPath: /var/lib/docker
|
|
||||||
- name: var-run
|
|
||||||
mountPath: /var/run
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dind-storage
|
- name: storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: longhorn-gitea-dind
|
claimName: longhorn-gitea-dind
|
||||||
- name: var-run
|
|
||||||
emptyDir: {}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user