From 38447408e175b1fb50f9d040f03a46dd58c84921 Mon Sep 17 00:00:00 2001 From: agile6v Date: Wed, 1 Jul 2020 10:53:31 +0800 Subject: [PATCH] Remove redundant health check to avoid liveness or readiness timeout --- internal/ingress/controller/checker.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/internal/ingress/controller/checker.go b/internal/ingress/controller/checker.go index 0b6a6c373..3603fccb8 100644 --- a/internal/ingress/controller/checker.go +++ b/internal/ingress/controller/checker.go @@ -61,16 +61,7 @@ func (n *NGINXController) Check(_ *http.Request) error { return errors.Wrapf(err, "checking for NGINX process with PID %v", pid) } - statusCode, _, err := nginx.NewGetStatusRequest(nginx.HealthPath) - if err != nil { - return errors.Wrapf(err, "checking if NGINX is running") - } - - if statusCode != 200 { - return fmt.Errorf("ingress controller is not healthy (%v)", statusCode) - } - - statusCode, _, err = nginx.NewGetStatusRequest("/is-dynamic-lb-initialized") + statusCode, _, err := nginx.NewGetStatusRequest("/is-dynamic-lb-initialized") if err != nil { return errors.Wrapf(err, "checking if the dynamic load balancer started") }