fix filer starting
This commit is contained in:
parent
a55feda96d
commit
4ea680c4c9
|
@ -16,11 +16,11 @@ func (r *SeaweedReconciler) ensureFilerServers(seaweedCR *seaweedv1.Seaweed) (do
|
||||||
_ = context.Background()
|
_ = context.Background()
|
||||||
_ = r.Log.WithValues("seaweed", seaweedCR.Name)
|
_ = r.Log.WithValues("seaweed", seaweedCR.Name)
|
||||||
|
|
||||||
if done, result, err = r.ensureFilerStatefulSet(seaweedCR); done {
|
if done, result, err = r.ensureFilerService(seaweedCR); done {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if done, result, err = r.ensureFilerService(seaweedCR); done {
|
if done, result, err = r.ensureFilerStatefulSet(seaweedCR); done {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ func (r *SeaweedReconciler) createFilerStatefulSet(m *seaweedv1.Seaweed) *appsv1
|
||||||
"-ec",
|
"-ec",
|
||||||
fmt.Sprintf("weed filer -port=8888 %s %s -s3",
|
fmt.Sprintf("weed filer -port=8888 %s %s -s3",
|
||||||
fmt.Sprintf("-ip=$(POD_NAME).%s-filer", m.Name),
|
fmt.Sprintf("-ip=$(POD_NAME).%s-filer", 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("-master=%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),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -91,9 +91,6 @@ func (r *SeaweedReconciler) createFilerStatefulSet(m *seaweedv1.Seaweed) *appsv1
|
||||||
ContainerPort: 8333,
|
ContainerPort: 8333,
|
||||||
Name: "swfs-s3",
|
Name: "swfs-s3",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
ContainerPort: 18333,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
ReadinessProbe: &corev1.Probe{
|
ReadinessProbe: &corev1.Probe{
|
||||||
|
|
Loading…
Reference in New Issue