Kubernetes Integration
Kubernetes needs to know if your app is alive and ready to receive traffic.
- Liveness: Is the process running? (Return 200).
- Readiness: Is the DB connected? Are caches warm? (Check dependencies).
go mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) })