Skip to content

Commit

Permalink
[COMMON][MARIADB] Force Galera Node address
Browse files Browse the repository at this point in the history
Bitnami init script can automatically choose the node address (which is
the IP address of the container).
Unfortunately, this doesn't work when on dual stack as both IP addresses
with a space are given (see
bitnami/charts#4077).
This patch force the IP address so we can get rid of this issue

Issue-ID: OOM-2661
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I5dd2147df1932b1f0fdde7c2b55585cff45bab68
  • Loading branch information
sylvainOL committed Jan 18, 2021
1 parent 0903977 commit cded110
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kubernetes/common/mariadb-galera/templates/statefulset.yaml
Expand Up @@ -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
Expand Down

0 comments on commit cded110

Please sign in to comment.