Skip to content

Commit

Permalink
Merge pull request #8 from JoshVanL/livenessprobe
Browse files Browse the repository at this point in the history
Adds liveness probe to csi-driver
  • Loading branch information
jetstack-bot authored May 3, 2022
2 parents 5b41059 + 5a88376 commit e1fd00c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions deploy/charts/csi-driver-spiffe/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ spec:
- name: registration-dir
mountPath: /registration

- name: liveness-probe
image: k8s.gcr.io/sig-storage/livenessprobe:v2.6.0
args:
- --csi-address=/plugin/csi.sock
- --probe-timeout=3s
- --health-port=9809
- -v={{ .Values.app.logLevel }}
volumeMounts:
- name: plugin-dir
mountPath: /plugin

- name: cert-manager-csi-driver-spiffe
securityContext:
privileged: true
Expand Down Expand Up @@ -80,6 +91,15 @@ spec:
{{- if .Values.app.driver.volumeMounts }}
{{ toYaml .Values.app.driver.volumeMounts | indent 10 }}
{{- end }}
ports:
- containerPort: 9809
name: healthz
livenessProbe:
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 5
timeoutSeconds: 5
resources:
{{- toYaml .Values.app.driver.resources | nindent 12 }}

Expand Down

0 comments on commit e1fd00c

Please sign in to comment.