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 25, 2019
1 parent 9e92ae8 commit 3b9c701
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 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 @@ -24,7 +24,7 @@ spec:
spec:
nodeSelector:
beta.kubernetes.io/os: linux
serviceAccount: csi-node-sa
serviceAccount: efs-csi-node-sa
hostNetwork: true
containers:
- name: efs-plugin
Expand All @@ -45,6 +45,18 @@ spec:
mountPropagation: "Bidirectional"
- name: plugin-dir
mountPath: /csi
ports:
- containerPort: 9809
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 @@ -65,6 +77,15 @@ 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
- --health-port=9809
volumeMounts:
- mountPath: /csi
name: plugin-dir
volumes:
- name: kubelet-dir
hostPath:
Expand Down

0 comments on commit 3b9c701

Please sign in to comment.