fix filer replica

This commit is contained in:
Chris Lu 2020-11-03 18:26:28 -08:00
parent eef877dacb
commit 7399cc6e30
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ func buildFilerStartupScript(m *seaweedv1.Seaweed) string {
commands := []string{"weed", "filer"}
commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.FilerHTTPPort))
commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-filer-peer", m.Name))
commands = append(commands, fmt.Sprintf("-peers=%s", getFilerPeersString(m.Name, m.Spec.Volume.Replicas)))
commands = append(commands, fmt.Sprintf("-peers=%s", getFilerPeersString(m.Name, m.Spec.Filer.Replicas)))
commands = append(commands, fmt.Sprintf("-master=%s", getMasterPeersString(m.Name, m.Spec.Master.Replicas)))
commands = append(commands, "-s3")