Merge pull request #5832 from agile6v/healthcheck
fix: remove redundant health check to avoid liveness or readiness timeout
This commit is contained in:
commit
24c7766d7c
1 changed files with 1 additions and 10 deletions
|
@ -61,16 +61,7 @@ func (n *NGINXController) Check(_ *http.Request) error {
|
||||||
return errors.Wrapf(err, "checking for NGINX process with PID %v", pid)
|
return errors.Wrapf(err, "checking for NGINX process with PID %v", pid)
|
||||||
}
|
}
|
||||||
|
|
||||||
statusCode, _, err := nginx.NewGetStatusRequest(nginx.HealthPath)
|
statusCode, _, err := nginx.NewGetStatusRequest("/is-dynamic-lb-initialized")
|
||||||
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")
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "checking if the dynamic load balancer started")
|
return errors.Wrapf(err, "checking if the dynamic load balancer started")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue