Add healthz checker
This commit is contained in:
parent
d1fb96ac10
commit
478d51c827
5 changed files with 37 additions and 23 deletions
|
|
@ -155,7 +155,11 @@ func NewIngressController(backend ingress.Controller) *GenericController {
|
|||
|
||||
func registerHandlers(enableProfiling bool, port int, ic *GenericController) {
|
||||
mux := http.NewServeMux()
|
||||
healthz.InstallHandler(mux, ic)
|
||||
// expose health check endpoint (/healthz)
|
||||
healthz.InstallHandler(mux,
|
||||
healthz.PingHealthz,
|
||||
ic.cfg.Backend,
|
||||
)
|
||||
|
||||
mux.Handle("/metrics", prometheus.Handler())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue