Skip to content

Commit

Permalink
Merge pull request #5832 from agile6v/healthcheck
Browse files Browse the repository at this point in the history
fix: remove redundant health check to avoid liveness or readiness timeout
  • Loading branch information
k8s-ci-robot authored Jul 3, 2020
2 parents 5f81b84 + 3844740 commit 24c7766
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions internal/ingress/controller/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 24c7766

Please sign in to comment.