Skip to content

Commit 64ea511

Browse files
chrism417Chris Mooney
and
Chris Mooney
authored
chore: add liveness probe and failurethreshold to probes (#329)
Signed-off-by: Chris Mooney <chris.mooney@omaticsoftware.com> Co-authored-by: Chris Mooney <chris.mooney@omaticsoftware.com>
1 parent 7d83379 commit 64ea511

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

deploy/charts/vault-secrets-webhook/templates/webhook-deployment.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,25 @@ spec:
8888
imagePullPolicy: {{ .Values.image.pullPolicy }}
8989
ports:
9090
- containerPort: {{ .Values.service.internalPort }}
91+
livenessProbe:
92+
httpGet:
93+
scheme: HTTPS
94+
path: /healthz
95+
port: {{ .Values.service.internalPort }}
96+
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
97+
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
98+
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
99+
successThreshold: {{ .Values.livenessProbe.successThreshold }}
100+
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
91101
readinessProbe:
92102
httpGet:
93103
scheme: HTTPS
94104
path: /healthz
95105
port: {{ .Values.service.internalPort }}
106+
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
107+
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
108+
successThreshold: {{ .Values.readinessProbe.successThreshold }}
109+
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
96110
volumeMounts:
97111
- mountPath: /var/serving-cert
98112
name: serving-cert

deploy/charts/vault-secrets-webhook/values.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,19 @@ topologySpreadConstraints: {}
173173
# Check: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
174174
priorityClassName: ""
175175

176+
# -- Liveness and readiness probes for the webhook container
177+
livenessProbe:
178+
initialDelaySeconds: 30
179+
failureThreshold: 3
180+
periodSeconds: 10
181+
successThreshold: 1
182+
timeoutSeconds: 1
183+
readinessProbe:
184+
failureThreshold: 3
185+
periodSeconds: 10
186+
successThreshold: 1
187+
timeoutSeconds: 1
188+
176189
rbac:
177190
psp:
178191
# -- Use pod security policy

0 commit comments

Comments
 (0)