2022-02-24 10:49:25 -05:00
|
|
|
image:
|
|
|
|
repository: tccr.io/truecharts/docker-in-docker
|
|
|
|
pullPolicy: IfNotPresent
|
2023-02-26 16:55:59 -05:00
|
|
|
tag: 23.0.1@sha256:118421527d72dd07061e074781b8fee99bb6dc50c5f76e0453e69a1095c25bc2
|
2022-02-24 10:49:25 -05:00
|
|
|
|
|
|
|
controller:
|
|
|
|
# -- Set the controller type.
|
|
|
|
# Valid options are deployment, daemonset or statefulset
|
|
|
|
type: statefulset
|
|
|
|
# -- Number of desired pods
|
|
|
|
replicas: 1
|
|
|
|
# -- Set the controller upgrade strategy
|
|
|
|
# For Deployments, valid values are Recreate (default) and RollingUpdate.
|
|
|
|
# For StatefulSets, valid values are OnDelete and RollingUpdate (default).
|
|
|
|
# DaemonSets ignore this.
|
|
|
|
strategy: RollingUpdate
|
|
|
|
rollingUpdate:
|
|
|
|
# -- Set deployment RollingUpdate max unavailable
|
|
|
|
unavailable: 1
|
|
|
|
# -- Set deployment RollingUpdate max surge
|
|
|
|
surge:
|
|
|
|
# -- Set statefulset RollingUpdate partition
|
|
|
|
partition:
|
|
|
|
# -- ReplicaSet revision history limit
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
allowPrivilegeEscalation: true
|
|
|
|
runAsNonRoot: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
fsGroup: 0
|
|
|
|
|
|
|
|
hostNetwork: true
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 2376
|
|
|
|
type: HTTPS
|
|
|
|
|
|
|
|
env:
|
2022-10-16 15:41:13 -04:00
|
|
|
DOCKER_TLS_CERTDIR: /certs
|
2022-02-24 14:53:22 -05:00
|
|
|
COMPOSE_FILE: ""
|
|
|
|
|
|
|
|
lifecycle:
|
|
|
|
postStart:
|
|
|
|
exec:
|
|
|
|
command:
|
2022-10-16 15:41:13 -04:00
|
|
|
- /bin/bash
|
|
|
|
- -c
|
2022-02-24 17:32:31 -05:00
|
|
|
- |
|
|
|
|
if [ "${COMPOSE_FILE}" ]; then
|
2022-10-16 15:41:13 -04: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 17:32:31 -05:00
|
|
|
else
|
2022-10-16 15:41:13 -04:00
|
|
|
echo "COMPOSE_FILE not set, not auto-loading compose-file" >> /proc/1/fd/1;
|
2022-02-24 16:01:55 -05:00
|
|
|
fi
|
2022-02-24 14:53:22 -05:00
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
spec:
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
readiness:
|
|
|
|
spec:
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
startup:
|
|
|
|
spec:
|
|
|
|
initialDelaySeconds: 30
|
2022-02-24 10:49:25 -05:00
|
|
|
|
|
|
|
persistence:
|
|
|
|
varrun:
|
|
|
|
enabled: false
|
|
|
|
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:
|
|
|
|
enabled: false
|