Add startup probe to dind side-car (#4117)
This commit is contained in:
parent
eef57e1a77
commit
9d8c59aeb3
|
|
@ -108,6 +108,14 @@ securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
{{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }}
|
{{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }}
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
startupProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- docker
|
||||||
|
- info
|
||||||
|
initialDelaySeconds: 0
|
||||||
|
failureThreshold: 24
|
||||||
|
periodSeconds: 5
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: work
|
- name: work
|
||||||
|
|
|
||||||
|
|
@ -286,18 +286,6 @@ template:
|
||||||
## volumeMounts:
|
## volumeMounts:
|
||||||
## - name: dind-externals
|
## - name: dind-externals
|
||||||
## mountPath: /home/runner/tmpDir
|
## 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:///var/run/docker.sock
|
|
||||||
## volumeMounts:
|
|
||||||
## - name: work
|
|
||||||
## mountPath: /home/runner/_work
|
|
||||||
## - name: dind-sock
|
|
||||||
## mountPath: /var/run
|
|
||||||
## - name: dind
|
## - name: dind
|
||||||
## image: docker:dind
|
## image: docker:dind
|
||||||
## args:
|
## args:
|
||||||
|
|
@ -309,13 +297,29 @@ template:
|
||||||
## value: "123"
|
## value: "123"
|
||||||
## securityContext:
|
## securityContext:
|
||||||
## privileged: true
|
## privileged: true
|
||||||
|
## restartPolicy: Always
|
||||||
|
## startupProbe:
|
||||||
|
## exec:
|
||||||
|
## command:
|
||||||
|
## - docker
|
||||||
|
## - info
|
||||||
|
## initialDelaySeconds: 0
|
||||||
|
## failureThreshold: 24
|
||||||
|
## periodSeconds: 5
|
||||||
|
## containers:
|
||||||
|
## - name: runner
|
||||||
|
## image: ghcr.io/actions/actions-runner:latest
|
||||||
|
## command: ["/home/runner/run.sh"]
|
||||||
|
## env:
|
||||||
|
## - name: DOCKER_HOST
|
||||||
|
## value: unix:///var/run/docker.sock
|
||||||
|
## - name: RUNNER_WAIT_FOR_DOCKER_IN_SECONDS
|
||||||
|
## value: "120"
|
||||||
## 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
|
|
||||||
## mountPath: /home/runner/externals
|
|
||||||
## volumes:
|
## volumes:
|
||||||
## - name: work
|
## - name: work
|
||||||
## emptyDir: {}
|
## emptyDir: {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue