sleep before shutdown
This commit is contained in:
parent
b933310da5
commit
305421fb80
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue