dind
This commit is contained in:
@@ -63,7 +63,12 @@ spec:
|
|||||||
app.kubernetes.io/name: act-runner
|
app.kubernetes.io/name: act-runner
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...';
|
||||||
|
sleep 5; done; /sbin/tini -- run.sh
|
||||||
|
env:
|
||||||
- name: GITEA_INSTANCE_URL
|
- name: GITEA_INSTANCE_URL
|
||||||
value: https://git.borninpain.de
|
value: https://git.borninpain.de
|
||||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||||
@@ -78,22 +83,30 @@ spec:
|
|||||||
- name: DOCKER_CERT_PATH
|
- name: DOCKER_CERT_PATH
|
||||||
value: /certs/client
|
value: /certs/client
|
||||||
- name: DOCKER_TLS_VERIFY
|
- name: DOCKER_TLS_VERIFY
|
||||||
value: "0"
|
value: "1"
|
||||||
image: docker.io/gitea/act_runner:0.2.11-dind-rootless
|
image: docker.io/gitea/act_runner:0.2.13
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: act-runner
|
name: act-runner
|
||||||
securityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: config
|
name: config
|
||||||
|
- mountPath: /certs
|
||||||
|
name: docker-certs
|
||||||
|
- env:
|
||||||
|
- name: DOCKER_TLS_CERTDIR
|
||||||
|
value: /certs
|
||||||
|
- mountPath: /certs
|
||||||
|
name: docker-certs
|
||||||
|
image: docker:23.0.6-dind
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: docker-dind
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /certs
|
||||||
|
name: docker-certs
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
@@ -103,6 +116,8 @@ spec:
|
|||||||
- configMap:
|
- configMap:
|
||||||
name: gitea-runner-act-runner-config
|
name: gitea-runner-act-runner-config
|
||||||
name: config
|
name: config
|
||||||
|
- emptyDir: {}
|
||||||
|
name: docker-certs
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ image:
|
|||||||
# -- Specify the image name to use (relative to `image.repository`).
|
# -- Specify the image name to use (relative to `image.repository`).
|
||||||
name: gitea/act_runner
|
name: gitea/act_runner
|
||||||
# -- Overrides the image tag whose default is the chart appVersion.
|
# -- Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: "0.2.11"
|
tag: "0.2.13"
|
||||||
# -- Specify the image repository to use.
|
# -- Specify the image repository to use.
|
||||||
repository: docker.io
|
repository: docker.io
|
||||||
# -- Specify the image pull policy. Valid values are `Always`, `Never`, `IfNotPresent`.
|
# -- Specify the image pull policy. Valid values are `Always`, `Never`, `IfNotPresent`.
|
||||||
@@ -32,7 +32,7 @@ runner:
|
|||||||
# Docker in Docker configuration for running Docker commands inside the runner.
|
# Docker in Docker configuration for running Docker commands inside the runner.
|
||||||
dockerDind:
|
dockerDind:
|
||||||
# -- Enable Docker in Docker with root user.
|
# -- Enable Docker in Docker with root user.
|
||||||
enabled: false
|
enabled: true
|
||||||
# -- Docker DinD image repository and tag.
|
# -- Docker DinD image repository and tag.
|
||||||
image: docker:23.0.6-dind
|
image: docker:23.0.6-dind
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user