[DMAAP] DMaaP ServiceMesh compatibility
[oom.git] / kubernetes / dmaap / components / message-router / components / message-router-zookeeper / templates / statefulset.yaml
index 5ea5bc5..cac75b1 100644 (file)
@@ -125,14 +125,14 @@ spec:
         {{ if eq .Values.liveness.enabled true }}
         livenessProbe:
           exec:
-            command:  ['/bin/bash', '-c', 'echo "ruok" | nc -w 2 -q 2 localhost 2181 | grep imok']
+            command:  ['/bin/bash', '-c', 'echo "ruok" | nc -w 2 localhost 2181 | grep imok']
           initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
           periodSeconds: {{ .Values.liveness.periodSeconds }}
           timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
         {{ end }}
         readinessProbe:
           exec:
-            command: ['/bin/bash', '-c', 'echo "ruok" | nc -w 2 -q 2 localhost 2181 | grep imok']
+            command: ['/bin/bash', '-c', 'echo "ruok" | nc -w 2 localhost 2181 | grep imok']
           initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
           periodSeconds: {{ .Values.readiness.periodSeconds }}
           timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
@@ -165,6 +165,8 @@ spec:
           value: "{{ .Values.zkConfig.kafkaOpts }}"
         - name: ZOOKEEPER_QUORUM_LISTEN_ON_ALL_IPS
           value: "true"
+        - name: ZOOKEEPER_SERVERS
+          value: {{ template "zookeeper.serverlist" . }}
         - name: ZOOKEEPER_SERVER_ID
           valueFrom:
             fieldRef:
@@ -187,6 +189,7 @@ spec:
       tolerations:
         {{ toYaml .Values.tolerations | indent 10 }}
       {{- end }}
+      serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
       volumes:
       - name: localtime
         hostPath: