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, " ") }