parent
42358f80d8
commit
1053ae7d62
|
@ -16,7 +16,7 @@ func buildVolumeServerStartupScript(m *seaweedv1.Seaweed, dirs []string) string
|
||||||
commands := []string{"weed", "volume"}
|
commands := []string{"weed", "volume"}
|
||||||
commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.VolumeHTTPPort))
|
commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.VolumeHTTPPort))
|
||||||
commands = append(commands, "-max=0")
|
commands = append(commands, "-max=0")
|
||||||
commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-volume-peer,%s", m.Name, m.Namespace))
|
commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-volume-peer.%s", m.Name, m.Namespace))
|
||||||
if m.Spec.HostSuffix != nil && *m.Spec.HostSuffix != "" {
|
if m.Spec.HostSuffix != nil && *m.Spec.HostSuffix != "" {
|
||||||
commands = append(commands, fmt.Sprintf("-publicUrl=$(POD_NAME).%s", *m.Spec.HostSuffix))
|
commands = append(commands, fmt.Sprintf("-publicUrl=$(POD_NAME).%s", *m.Spec.HostSuffix))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue