need to add a delay for the dns to be ready
This commit is contained in:
parent
9c9549c1cc
commit
9ee5f6bb7e
|
@ -85,13 +85,13 @@ func (r *SeaweedReconciler) createMasterStatefulSet(m *seaweedv1.Seaweed) *appsv
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Command: []string{
|
Command: []string{
|
||||||
"weed",
|
"/bin/sh",
|
||||||
"master",
|
"-ec",
|
||||||
"-volumePreallocate",
|
fmt.Sprintf("sleep 60; weed master -volumePreallocate -volumeSizeLimitMB=1000 %s %s",
|
||||||
"-volumeSizeLimitMB=1000",
|
fmt.Sprintf("-ip=$(POD_NAME).%s-master", m.Name),
|
||||||
fmt.Sprintf("-ip=$(POD_NAME).%s-master", m.Name),
|
fmt.Sprintf("-peers=%s-master-0.%s-master:9333,%s-master-1.%s-master:9333,%s-master-2.%s-master:9333",
|
||||||
fmt.Sprintf("-peers=%s-master-0.%s-master:9333,%s-master-1.%s-master:9333,%s-master-2.%s-master:9333",
|
m.Name, m.Name, m.Name, m.Name, m.Name, m.Name),
|
||||||
m.Name, m.Name, m.Name, m.Name, m.Name, m.Name),
|
),
|
||||||
},
|
},
|
||||||
Ports: []corev1.ContainerPort{
|
Ports: []corev1.ContainerPort{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue