k8s 平滑重启
package main import ( "fmt" "log" "net/http" "time" ) func handler(w http.ResponseWriter, r *http.Request) { time.Sleep(time.Millisecond * time.Duration(500)) fmt.Fprintf(w, "ok") } func main() { http.HandleFunc("/A", handler) log.Fatal(http.ListenAndServe("