fix master name
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
This commit is contained in:
parent
a8c8fd65bc
commit
7b11a10862
|
@ -31,7 +31,7 @@ func buildMasterStartupScript(m *seaweedv1.Seaweed) string {
|
||||||
command = append(command, fmt.Sprintf("-pulseSeconds=%d", *spec.PulseSeconds))
|
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)))
|
command = append(command, fmt.Sprintf("-peers=%s", getMasterPeersString(m.Name, spec.Replicas)))
|
||||||
return strings.Join(command, " ")
|
return strings.Join(command, " ")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue