X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fdmaap%2Fcomponents%2Fmessage-router%2Fcomponents%2Fmessage-router-zookeeper%2Ftemplates%2Fstatefulset.yaml;h=cac75b15652e6899187229b56ee14a39eeb3087c;hb=0d5c917c02b40b335251a39952bb46f70bcb73ce;hp=5ea5bc53b7d21d12bb2ee7c72e6975d150bef4c3;hpb=fbd5c5ae348d31f62b3f5e5212ddce8752b964e8;p=oom.git diff --git a/kubernetes/dmaap/components/message-router/components/message-router-zookeeper/templates/statefulset.yaml b/kubernetes/dmaap/components/message-router/components/message-router-zookeeper/templates/statefulset.yaml index 5ea5bc53b7..cac75b1565 100644 --- a/kubernetes/dmaap/components/message-router/components/message-router-zookeeper/templates/statefulset.yaml +++ b/kubernetes/dmaap/components/message-router/components/message-router-zookeeper/templates/statefulset.yaml @@ -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: