fix odd number of masters

This commit is contained in:
Chris Lu 2020-11-08 17:40:16 -08:00
parent b9377c0da1
commit 411cb7bc7d
1 changed files with 1 additions and 1 deletions

View File

@ -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-peer", m.Name))
command = append(command, fmt.Sprintf("-ip=$(POD_NAME).%s-master-peer.%s", m.Name, m.Namespace))
command = append(command, fmt.Sprintf("-peers=%s", getMasterPeersString(m)))
return strings.Join(command, " ")
}