2022-02-24 15:49:25 +00:00
|
|
|
image:
|
|
|
|
repository: tccr.io/truecharts/docker-in-docker
|
|
|
|
pullPolicy: IfNotPresent
|
2023-07-04 02:04:49 +00:00
|
|
|
tag: v23.0.6@sha256:354cab0b098c29bb3c4d84bd1e773cb3282dbd98aa282b5be4cf2571ed867109
|
2023-04-30 19:15:20 +00:00
|
|
|
hostNetwork: true
|
2022-02-24 15:49:25 +00:00
|
|
|
|
|
|
|
securityContext:
|
2023-04-30 19:15:20 +00:00
|
|
|
container:
|
|
|
|
privileged: true
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
allowPrivilegeEscalation: true
|
|
|
|
runAsNonRoot: false
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
fsGroup: 0
|
2022-02-24 15:49:25 +00:00
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
enabled: true
|
2023-04-30 19:15:20 +00:00
|
|
|
type: ClusterIP
|
2022-02-24 15:49:25 +00:00
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 2376
|
|
|
|
type: HTTPS
|
|
|
|
|
2022-02-24 19:53:22 +00:00
|
|
|
lifecycle:
|
|
|
|
postStart:
|
|
|
|
exec:
|
|
|
|
command:
|
2022-10-16 19:41:13 +00:00
|
|
|
- /bin/bash
|
|
|
|
- -c
|
2022-02-24 22:32:31 +00:00
|
|
|
- |
|
|
|
|
if [ "${COMPOSE_FILE}" ]; then
|
2022-10-16 19:41:13 +00:00
|
|
|
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 "Loading COMPOSE_FILE at location ${COMPOSE_FILE}" >> /proc/1/fd/1;
|
2022-02-24 22:32:31 +00:00
|
|
|
else
|
2022-10-16 19:41:13 +00:00
|
|
|
echo "COMPOSE_FILE not set, not auto-loading compose-file" >> /proc/1/fd/1;
|
2022-02-24 21:01:55 +00:00
|
|
|
fi
|
2023-04-30 19:15:20 +00: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: ""
|
|
|
|
|
|
|
|
type: StatefulSet
|
|
|
|
replicas: 1
|
|
|
|
strategy: RollingUpdate
|
2022-02-24 15:49:25 +00:00
|
|
|
|
|
|
|
persistence:
|
|
|
|
docker-certs-ca:
|
|
|
|
enabled: true
|
2022-10-16 19:41:13 +00:00
|
|
|
mountPath: /config
|
2022-02-24 15:49:25 +00:00
|
|
|
|
|
|
|
volumeClaimTemplates:
|
|
|
|
docker-certs-client:
|
|
|
|
enabled: true
|
2022-10-16 19:41:13 +00:00
|
|
|
mountPath: /certs/client
|
2022-02-24 15:49:25 +00:00
|
|
|
docker:
|
|
|
|
enabled: true
|
2022-10-16 19:41:13 +00:00
|
|
|
mountPath: /var/lib/docker
|
2022-08-08 21:25:02 +00:00
|
|
|
|
|
|
|
portal:
|
2023-04-30 19:15:20 +00:00
|
|
|
open:
|
|
|
|
enabled: false
|