Skip to content

Commit 9a5ffa9

Browse files
authored
fix: readiness (#283)
1 parent 3c0c16d commit 9a5ffa9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/gateway.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ var gatewayCmd = &cobra.Command{
8282

8383
// Set up HTTP handler
8484
http.Handle("/", gatewayInstance)
85+
http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
86+
w.WriteHeader(http.StatusOK)
87+
})
88+
http.HandleFunc("/readyz", func(w http.ResponseWriter, r *http.Request) {
89+
w.WriteHeader(http.StatusOK)
90+
})
8591

8692
// Replace the /metrics endpoint handler
8793
http.Handle("/metrics", promhttp.Handler())

0 commit comments

Comments
 (0)