Skip to content

Commit

Permalink
add liveness probe and failurethreshold to probes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Mooney committed Feb 9, 2024
1 parent d28e85b commit fb51d1b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,25 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: {{ .Values.service.internalPort }}
livenessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: {{ .Values.service.internalPort }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
readinessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: {{ .Values.service.internalPort }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
volumeMounts:
- mountPath: /var/serving-cert
name: serving-cert
Expand Down
13 changes: 13 additions & 0 deletions deploy/charts/vault-secrets-webhook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,19 @@ topologySpreadConstraints: {}
# Check: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
priorityClassName: ""

# -- Liveness and readiness probes for the webhook container
livenessProbe:
initialDelaySeconds: 30
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1

rbac:
psp:
# -- Use pod security policy
Expand Down

0 comments on commit fb51d1b

Please sign in to comment.