This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git


The following commit(s) were added to refs/heads/master by this push:
     new 14e76ca  liveness and readiness probes for zookeeper (#430)
14e76ca is described below

commit 14e76ca569117bb279172a1cefcf112f5b6f3573
Author: David Grove <[email protected]>
AuthorDate: Sat Feb 23 09:49:57 2019 -0500

    liveness and readiness probes for zookeeper (#430)
---
 helm/openwhisk/templates/zookeeper-pod.yaml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/helm/openwhisk/templates/zookeeper-pod.yaml 
b/helm/openwhisk/templates/zookeeper-pod.yaml
index 746e137..6649cd0 100644
--- a/helm/openwhisk/templates/zookeeper-pod.yaml
+++ b/helm/openwhisk/templates/zookeeper-pod.yaml
@@ -55,6 +55,20 @@ spec:
         - name: leader-election
           containerPort: {{ .Values.zookeeper.leaderElectionPort }}
 
+        livenessProbe:
+          tcpSocket:
+            port: {{ .Values.zookeeper.port }}
+            initialDelaySeconds: 5
+            periodSeconds: 10
+        readinessProbe:
+          exec:
+            command:
+            - /bin/bash
+            - -c
+            - "echo ruok | nc -w 1 localhost:{{ .Values.zookeeper.port }} | 
grep imok"
+            initialDelaySeconds: 5
+            periodSeconds: 10
+
         volumeMounts:
         - mountPath: /conf
           name: zk-config

Reply via email to