mirror of
https://github.com/axllent/mailpit.git
synced 2025-02-07 13:31:56 +02:00
Kubernetes checks if a pod is ok and if it can retrieve traffic using probes. This commit add two routes to make a liveness probe and a readiness probe.
9 lines
162 B
Go
9 lines
162 B
Go
package handlers
|
|
|
|
import "net/http"
|
|
|
|
// Healthz is a liveness probe
|
|
func HealthzHandler(w http.ResponseWriter, _ *http.Request) {
|
|
w.WriteHeader(http.StatusOK)
|
|
}
|