Add healthz checker

This commit is contained in:
Manuel de Brito Fontes 2016-11-26 21:09:59 -03:00
parent d1fb96ac10
commit 478d51c827
5 changed files with 37 additions and 23 deletions

View file

@ -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())