diff --git a/deploy/charts/mysql-operator/templates/orchestrator-config.yaml b/deploy/charts/mysql-operator/templates/orchestrator-config.yaml index dbe538e19..7aceaf446 100644 --- a/deploy/charts/mysql-operator/templates/orchestrator-config.yaml +++ b/deploy/charts/mysql-operator/templates/orchestrator-config.yaml @@ -8,7 +8,7 @@ {{- $_ := set $conf "RaftEnabled" true }} {{- $_ := set $conf "RaftDataDir" "/var/lib/orchestrator" }} {{- $_ := set $conf "RaftAdvertise" "{{ .Env.HOSTNAME }}-orc-svc" }} -{{- $_ := set $conf "RaftBind" "{{ .Env.HOSTNAME }}"}} +{{- $_ := set $conf "RaftBind" "{{ .Env.POD_IP }}"}} {{- $_ := set $conf "HTTPAdvertise" "http://{{ .Env.HOSTNAME }}-orc-svc:80" }} {{- if eq 1 $replicas -}} {{- $_ := set $conf "RaftNodes" (list) }} diff --git a/deploy/charts/mysql-operator/values.yaml b/deploy/charts/mysql-operator/values.yaml index 00b818571..f1a9a47d1 100644 --- a/deploy/charts/mysql-operator/values.yaml +++ b/deploy/charts/mysql-operator/values.yaml @@ -212,7 +212,7 @@ orchestrator: # - SQLite3DataFile /var/lib/orchestrator/orc.db # - RaftEnabled true # - RaftDataDir /var/lib/orchestrator - # - RaftBind $HOSTNAME + # - RaftBind $POD_IP # - RaftNodes The statefullset members config: Debug: false