2023-08-01 05:25:32 -04:00
|
|
|
image:
|
|
|
|
repository: tccr.io/truecharts/docker-in-docker
|
|
|
|
pullPolicy: IfNotPresent
|
2023-10-03 06:47:40 -04:00
|
|
|
tag: v24.0.6@sha256:f2b588c625a0e7be76e64990d62d11a5ed6c5f5fb687fd1f58f3215ff52e7c9a
|
2023-08-01 05:25:32 -04:00
|
|
|
hostNetwork: true
|
|
|
|
|
|
|
|
securityContext:
|
|
|
|
container:
|
|
|
|
privileged: true
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
allowPrivilegeEscalation: true
|
|
|
|
runAsNonRoot: false
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
fsGroup: 0
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 2376
|
2023-09-16 04:54:42 -04:00
|
|
|
type: https
|
2023-08-01 05:25:32 -04:00
|
|
|
|
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
type: tcp
|
|
|
|
readiness:
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
type: tcp
|
|
|
|
startup:
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
type: tcp
|
|
|
|
env:
|
|
|
|
DOCKER_TLS_CERTDIR: /certs
|
|
|
|
COMPOSE_FILE: ""
|
2023-09-16 04:54:42 -04:00
|
|
|
lifecycle:
|
|
|
|
postStart:
|
|
|
|
type: exec
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
if [ "${COMPOSE_FILE}" ]; then
|
|
|
|
counter=0;
|
|
|
|
while ! docker info > /dev/null 2>&1 && [[ ${counter} -lt 10 ]]; do
|
|
|
|
echo "docker not running yet. Waiting..." >> /proc/1/fd/1;
|
|
|
|
sleep 5;
|
|
|
|
counter=$((counter+1));
|
|
|
|
done
|
|
|
|
docker-compose -f "${COMPOSE_FILE}" up -d && echo "Loaded COMPOSE_FILE at location ${COMPOSE_FILE}" >> /proc/1/fd/1;
|
|
|
|
else
|
|
|
|
echo "COMPOSE_FILE not set, not auto-loading compose-file" >> /proc/1/fd/1;
|
|
|
|
fi
|
2023-08-01 05:25:32 -04:00
|
|
|
type: StatefulSet
|
|
|
|
replicas: 1
|
|
|
|
strategy: RollingUpdate
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
docker-certs-ca:
|
|
|
|
enabled: true
|
|
|
|
mountPath: /config
|
|
|
|
|
|
|
|
volumeClaimTemplates:
|
|
|
|
docker-certs-client:
|
|
|
|
enabled: true
|
|
|
|
mountPath: /certs/client
|
|
|
|
docker:
|
|
|
|
enabled: true
|
|
|
|
mountPath: /var/lib/docker
|
|
|
|
|
|
|
|
portal:
|
|
|
|
open:
|
|
|
|
enabled: false
|