Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions examples/v1/taskruns/dind-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,19 @@ spec:
- mountPath: /certs/client
name: dind-certs
# Wait for the dind daemon to generate the certs it will share with the
# client.
# client. StartupProbe handles slow Docker daemon initialization.
startupProbe:
periodSeconds: 1
failureThreshold: 30 # Allow up to 30 seconds for Docker daemon to start
exec:
command: ['ls', '/certs/client/ca.pem']
# ReadinessProbe verifies Docker daemon is actually ready to accept commands.
# Note: With k8s native sidecar support, startupProbe is honored but
# readinessProbe may not be.
readinessProbe:
initialDelaySeconds: 3
periodSeconds: 2
exec:
command: ['ls', '/certs/client/ca.pem']
command: ['docker', 'info']

volumes:
- name: dind-certs
Expand Down
Loading