sleep before shutdown

This commit is contained in:
wuzhuoquan 2024-08-13 16:37:37 +08:00 committed by wuzhuoquan
parent b933310da5
commit 305421fb80

View file

@ -26,7 +26,7 @@ import (
)
func main() {
err := exec.Command("bash", "-c", "pkill -SIGTERM -f nginx-ingress-controller").Run()
err := exec.Command("bash", "-c", "sleep 5 && pkill -SIGTERM -f nginx-ingress-controller").Run()
if err != nil {
klog.ErrorS(err, "terminating ingress controller")
os.Exit(1)