Skip to content

Commit

Permalink
Add liveness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
wongma7 committed Jul 24, 2019
1 parent 180d793 commit ed3716c
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions deploy/kubernetes/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-node-sa
name: efs-csi-node-sa
namespace: kube-system

---
Expand All @@ -22,7 +22,7 @@ spec:
labels:
app: efs-csi-node
spec:
serviceAccount: csi-node-sa
serviceAccount: efs-csi-node-sa
hostNetwork: true
containers:
- name: efs-plugin
Expand All @@ -43,6 +43,18 @@ spec:
mountPropagation: "Bidirectional"
- name: plugin-dir
mountPath: /csi
ports:
- containerPort: 9808
name: healthz
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 10
timeoutSeconds: 3
periodSeconds: 2
- name: csi-driver-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0
args:
Expand All @@ -63,6 +75,14 @@ spec:
mountPath: /csi
- name: registration-dir
mountPath: /registration
- name: liveness-probe
imagePullPolicy: Always
image: quay.io/k8scsi/livenessprobe:v1.1.0
args:
- --csi-address=/csi/csi.sock
volumeMounts:
- mountPath: /csi
name: plugin-dir
volumes:
- name: kubelet-dir
hostPath:
Expand Down

0 comments on commit ed3716c

Please sign in to comment.