add docker-certs config

This commit is contained in:
2025-07-13 19:25:43 +05:30
parent 98663f0eec
commit 8a427d4ffa

View File

@@ -20,6 +20,8 @@ spec:
hostNetwork: true hostNetwork: true
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: docker-certs
emptyDir: {}
- name: docker-socket - name: docker-socket
emptyDir: {} emptyDir: {}
- name: runner-data - name: runner-data
@@ -39,11 +41,16 @@ spec:
echo "Gitea is ready!" echo "Gitea is ready!"
- name: docker - name: docker
image: docker:28.3.2-dind image: docker:28.3.2-dind
env:
- name: DOCKER_TLS_CERTDIR
value: "/certs"
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
- name: docker-socket - name: docker-socket
mountPath: /var/run/ mountPath: /var/run/
- name: docker-certs
mountPath: /certs
startupProbe: startupProbe:
tcpSocket: tcpSocket:
port: 2376 port: 2376
@@ -61,9 +68,13 @@ spec:
value: "NvAHP4f1in4Fpe6VFaiwiN98IR0poOQoDv4dDKcN" value: "NvAHP4f1in4Fpe6VFaiwiN98IR0poOQoDv4dDKcN"
- name: DOCKER_TLS_VERIFY - name: DOCKER_TLS_VERIFY
value: "0" value: "0"
- name: DOCKER_CERT_PATH
value: "/certs/client"
volumeMounts: volumeMounts:
- name: runner-data - name: runner-data
mountPath: /data mountPath: /data
- name: docker-socket - name: docker-socket
mountPath: /var/run/docker.sock mountPath: /var/run/docker.sock
subPath: docker.sock subPath: docker.sock
- name: docker-certs
mountPath: /certs