Skip to content

Commit bd3e223

Browse files
committed
Tunable liveness and readiness delays
Can be useful when a remote git repository grew quite large, as the probes handlers are only hooked after the first clone, which may take a while.A Relates to #68
1 parent 4e2e2ce commit bd3e223

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

assets/helm-chart/katafygio/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ spec:
6161
containerPort: {{ .Values.healthcheckPort }}
6262
protocol: TCP
6363
livenessProbe:
64+
{{ toYaml .Values.probesDelays.liveness | indent 12 }}
6465
httpGet:
6566
path: /health
6667
port: http
6768
readinessProbe:
69+
{{ toYaml .Values.probesDelays.readiness | indent 12 }}
6870
httpGet:
6971
path: /health
7072
port: http

assets/helm-chart/katafygio/values.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ resources: {}
9898
# cpu: 100m
9999
# memory: 128Mi
100100

101+
# liveness probes may need some tuning due to initial clone, which may be
102+
# very slow on large repos (healtcheck handle is registered after clone).
103+
# both liveness and readiness probes consumes the same health endpoint.
104+
probesDelays:
105+
liveness:
106+
initialDelaySeconds: 60
107+
periodSeconds: 10
108+
timeoutSeconds: 10
109+
readiness:
110+
timeoutSeconds: 10
111+
101112
replicaCount: 1
102113

103114
nodeSelector: {}

0 commit comments

Comments
 (0)