2022-02-24 10:49:25 -05:00
|
|
|
image:
|
|
|
|
repository: tccr.io/truecharts/docker-in-docker
|
|
|
|
pullPolicy: IfNotPresent
|
2023-10-31 14:40:45 -04:00
|
|
|
tag: v24.0.7@sha256:151a5f602aae8305be20f9e35fe7d51451b9d9eefe939d02b15c6195684b3726
|
2023-04-30 15:15:20 -04:00
|
|
|
hostNetwork: true
|
2022-02-24 10:49:25 -05:00
|
|
|
|
|
|
|
securityContext:
|
2023-04-30 15:15:20 -04:00
|
|
|
container:
|
|
|
|
privileged: true
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
allowPrivilegeEscalation: true
|
|
|
|
runAsNonRoot: false
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
fsGroup: 0
|
2022-02-24 10:49:25 -05:00
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
enabled: true
|
2023-04-30 15:15:20 -04:00
|
|
|
type: ClusterIP
|
2022-02-24 10:49:25 -05:00
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 2376
|
2023-09-16 04:49:10 -04:00
|
|
|
type: https
|
2023-04-30 15:15:20 -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:49:10 -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-04-30 15:15:20 -04:00
|
|
|
type: StatefulSet
|
|
|
|
replicas: 1
|
|
|
|
strategy: RollingUpdate
|
2022-02-24 10:49:25 -05:00
|
|
|
|
|
|
|
persistence:
|
|
|
|
docker-certs-ca:
|
|
|
|
enabled: true
|
2022-10-16 15:41:13 -04:00
|
|
|
mountPath: /config
|
2022-02-24 10:49:25 -05:00
|
|
|
|
|
|
|
volumeClaimTemplates:
|
|
|
|
docker-certs-client:
|
|
|
|
enabled: true
|
2022-10-16 15:41:13 -04:00
|
|
|
mountPath: /certs/client
|
2022-02-24 10:49:25 -05:00
|
|
|
docker:
|
|
|
|
enabled: true
|
2022-10-16 15:41:13 -04:00
|
|
|
mountPath: /var/lib/docker
|
2022-08-08 17:25:02 -04:00
|
|
|
|
|
|
|
portal:
|
2023-04-30 15:15:20 -04:00
|
|
|
open:
|
|
|
|
enabled: false
|