master probe
This commit is contained in:
parent
4b67dd3791
commit
1a443616b6
|
@ -6,6 +6,7 @@ import (
|
||||||
appsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
"k8s.io/apimachinery/pkg/util/intstr"
|
||||||
|
|
||||||
seaweedv1 "github.com/seaweedfs/seaweedfs-operator/api/v1"
|
seaweedv1 "github.com/seaweedfs/seaweedfs-operator/api/v1"
|
||||||
)
|
)
|
||||||
|
@ -102,43 +103,34 @@ func (r *SeaweedReconciler) createMasterStatefulSet(m *seaweedv1.Seaweed) *appsv
|
||||||
ContainerPort: 19333,
|
ContainerPort: 19333,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
/*
|
ReadinessProbe: &corev1.Probe{
|
||||||
ReadinessProbe: &corev1.Probe{
|
Handler: corev1.Handler{
|
||||||
Handler: corev1.Handler{
|
HTTPGet: &corev1.HTTPGetAction{
|
||||||
HTTPGet: &corev1.HTTPGetAction{
|
Path: "/cluster/status",
|
||||||
Path: "/cluster/status",
|
Port: intstr.FromInt(9333),
|
||||||
Port: intstr.IntOrString{
|
Scheme: "http",
|
||||||
Type: 0,
|
|
||||||
IntVal: 9333,
|
|
||||||
},
|
|
||||||
Scheme: "http",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
InitialDelaySeconds: 5,
|
|
||||||
TimeoutSeconds: 0,
|
|
||||||
PeriodSeconds: 15,
|
|
||||||
SuccessThreshold: 2,
|
|
||||||
FailureThreshold: 100,
|
|
||||||
},
|
},
|
||||||
LivenessProbe: &corev1.Probe{
|
InitialDelaySeconds: 5,
|
||||||
Handler: corev1.Handler{
|
TimeoutSeconds: 15,
|
||||||
HTTPGet: &corev1.HTTPGetAction{
|
PeriodSeconds: 15,
|
||||||
Path: "/cluster/status",
|
SuccessThreshold: 2,
|
||||||
Port: intstr.IntOrString{
|
FailureThreshold: 100,
|
||||||
Type: 0,
|
},
|
||||||
IntVal: 9333,
|
LivenessProbe: &corev1.Probe{
|
||||||
},
|
Handler: corev1.Handler{
|
||||||
Scheme: "http",
|
HTTPGet: &corev1.HTTPGetAction{
|
||||||
},
|
Path: "/cluster/status",
|
||||||
|
Port: intstr.FromInt(9333),
|
||||||
|
Scheme: "http",
|
||||||
},
|
},
|
||||||
InitialDelaySeconds: 20,
|
|
||||||
TimeoutSeconds: 0,
|
|
||||||
PeriodSeconds: 10,
|
|
||||||
SuccessThreshold: 1,
|
|
||||||
FailureThreshold: 6,
|
|
||||||
},
|
},
|
||||||
|
InitialDelaySeconds: 15,
|
||||||
*/
|
TimeoutSeconds: 15,
|
||||||
|
PeriodSeconds: 15,
|
||||||
|
SuccessThreshold: 1,
|
||||||
|
FailureThreshold: 6,
|
||||||
|
},
|
||||||
}},
|
}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue