diff --git a/cmd/nginx/main.go b/cmd/nginx/main.go index a67fc7774..9b6501731 100644 --- a/cmd/nginx/main.go +++ b/cmd/nginx/main.go @@ -254,13 +254,6 @@ func registerHandlers(mux *http.ServeMux) { b, _ := json.Marshal(version.String()) w.Write(b) }) - - mux.HandleFunc("/stop", func(w http.ResponseWriter, r *http.Request) { - err := syscall.Kill(syscall.Getpid(), syscall.SIGTERM) - if err != nil { - klog.Errorf("Unexpected error: %v", err) - } - }) } func registerHealthz(ic *controller.NGINXController, mux *http.ServeMux) {