From 7b11a10862cea4c0e986c1649e55d7aaf6622e72 Mon Sep 17 00:00:00 2001 From: Howard Lau Date: Fri, 30 Oct 2020 06:44:51 +0000 Subject: [PATCH] fix master name Signed-off-by: Howard Lau --- controllers/controller_master_statefulset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/controller_master_statefulset.go b/controllers/controller_master_statefulset.go index 0e79b38..1d8b3ad 100644 --- a/controllers/controller_master_statefulset.go +++ b/controllers/controller_master_statefulset.go @@ -31,7 +31,7 @@ func buildMasterStartupScript(m *seaweedv1.Seaweed) string { command = append(command, fmt.Sprintf("-pulseSeconds=%d", *spec.PulseSeconds)) } - command = append(command, fmt.Sprintf("-ip=$(POD_NAME).%s-master", m.Name)) + command = append(command, fmt.Sprintf("-ip=$(POD_NAME).%s-master-peer", m.Name)) command = append(command, fmt.Sprintf("-peers=%s", getMasterPeersString(m.Name, spec.Replicas))) return strings.Join(command, " ") }