diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-01-25 11:07:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-01-25 11:07:40 +0000 |
commit | 6a06c3300384b6ed4bb1259a2d80f992259e1a60 (patch) | |
tree | 48e29318d2949daa5e44fe00504831d00b67d0b9 | |
parent | 8ab4fba7165b3b9418730cb1cdd424346925a93f (diff) | |
parent | cded110df929618fc9fa2c76eef7870de631b114 (diff) |
Merge "[COMMON][MARIADB] Force Galera Node address"
-rw-r--r-- | kubernetes/common/mariadb-galera/templates/statefulset.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kubernetes/common/mariadb-galera/templates/statefulset.yaml b/kubernetes/common/mariadb-galera/templates/statefulset.yaml index caa506225d..bde971ffe7 100644 --- a/kubernetes/common/mariadb-galera/templates/statefulset.yaml +++ b/kubernetes/common/mariadb-galera/templates/statefulset.yaml @@ -100,6 +100,12 @@ spec: value: {{ .Values.galera.name | quote }} - name: MARIADB_GALERA_CLUSTER_ADDRESS value: "gcomm://{{ template "common.name" . }}-headless.{{ include "common.namespace" . }}.svc.{{ .Values.global.clusterDomain }}" + # Bitnami init script don't behave well in dual stack env. + # set it here as long as https://github.com/bitnami/charts/issues/4077 is not solved. + - name: MARIADB_GALERA_NODE_ADDRESS + valueFrom: + fieldRef: + fieldPath: status.podIP - name: MARIADB_ROOT_USER value: {{ .Values.rootUser.user | quote }} - name: MARIADB_ROOT_PASSWORD |