Merge "[COMMON][CASSANDRA] Service mesh compatible deploy"
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 16 Feb 2021 14:15:25 +0000 (14:15 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 16 Feb 2021 14:15:25 +0000 (14:15 +0000)
kubernetes/common/cassandra/templates/statefulset.yaml

index 471f88f..953c89d 100644 (file)
@@ -100,6 +100,14 @@ spec:
             value: {{ default "GossipingPropertyFileSnitch" .Values.config.endpoint_snitch | quote }}
           - name: CASSANDRA_AUTHENTICATOR
             value: {{ default "PasswordAuthenticator" .Values.config.authenticator | quote }}
+          {{- if include "common.onServiceMesh" . }}
+          - name: CASSANDRA_LISTEN_ADDRESS
+            value: "127.0.0.1"
+          - name: CASSANDRA_BROADCAST_ADDRESS
+            valueFrom:
+              fieldRef:
+                fieldPath: status.podIP
+          {{- end }}
           - name: POD_IP
             valueFrom:
               fieldRef: