From 9ac5dd6ee911bb4b2e66d9a3787f741f5e216b3f Mon Sep 17 00:00:00 2001 From: Fabio Brito d'Araujo e Oliveira Date: Wed, 21 Mar 2018 17:23:33 +0800 Subject: [PATCH] forcing delete of pods --- noderecycler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noderecycler.py b/noderecycler.py index 786d407..aff6886 100644 --- a/noderecycler.py +++ b/noderecycler.py @@ -79,7 +79,7 @@ def is_my_node(node_name): def drain_node(node_name): - cmdline = 'kubectl drain {} --ignore-daemonsets --force --delete-local-data'.format(node_name) + cmdline = 'kubectl drain {} --grace-period=180 --ignore-daemonsets --force --delete-local-data'.format(node_name) cmd = shlex.split(cmdline) logging.info('draining node') subprocess.call(cmd)