Add readiness probe to go env (#461)
This commit is contained in:
@@ -141,7 +141,12 @@ func specializeHandlerV2(w http.ResponseWriter, r *http.Request) {
|
|||||||
fmt.Println("Done")
|
fmt.Println("Done")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func readinessProbeHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
http.HandleFunc("/healthz", readinessProbeHandler)
|
||||||
http.HandleFunc("/specialize", specializeHandler)
|
http.HandleFunc("/specialize", specializeHandler)
|
||||||
http.HandleFunc("/v2/specialize", specializeHandlerV2)
|
http.HandleFunc("/v2/specialize", specializeHandlerV2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user