Skip to content

Commit

Permalink
change liveness probe to tcpSocket
Browse files Browse the repository at this point in the history
Signed-off-by: haorenfsa <[email protected]>
  • Loading branch information
haorenfsa committed Feb 6, 2025
1 parent ef7c055 commit acf8874
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pkg/controllers/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,8 @@ func GetMilvusConfCheckSum(spec v1beta1.MilvusSpec) string {
func GetDefaultStartupProbe() *corev1.Probe {
return &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/healthz",
Port: intstr.FromInt(9091),
Scheme: corev1.URISchemeHTTP,
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(9091),
},
},
TimeoutSeconds: 3,
Expand All @@ -458,10 +456,8 @@ func GetDefaultStartupProbe() *corev1.Probe {
func GetDefaultLivenessProbe() *corev1.Probe {
return &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/healthz",
Port: intstr.FromInt(9091),
Scheme: corev1.URISchemeHTTP,
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(9091),
},
},
TimeoutSeconds: 10,
Expand Down

0 comments on commit acf8874

Please sign in to comment.