summaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2021-02-16 14:15:25 +0000
committerGerrit Code Review <gerrit@onap.org>2021-02-16 14:15:25 +0000
commit6bafcb64b40cc96bddc65273f4f0f7be8584a90d (patch)
tree060f705bfbf35c5cd07ddf1e1a6a602298fed5a5 /kubernetes/common
parent6f10bd8e0e47e5fbe943d8409a44930afd6a8050 (diff)
parent09c55c801374ba8548789e143ab23f9cfbaec730 (diff)
Merge "[COMMON][CASSANDRA] Service mesh compatible deploy"
Diffstat (limited to 'kubernetes/common')
-rw-r--r--kubernetes/common/cassandra/templates/statefulset.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/kubernetes/common/cassandra/templates/statefulset.yaml b/kubernetes/common/cassandra/templates/statefulset.yaml
index 471f88f735..953c89d24d 100644
--- a/kubernetes/common/cassandra/templates/statefulset.yaml
+++ b/kubernetes/common/cassandra/templates/statefulset.yaml
@@ -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: