Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
forcing delete of pods
Browse files Browse the repository at this point in the history
  • Loading branch information
psychopenguin committed Mar 21, 2018
1 parent e83154b commit 9ac5dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noderecycler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ac5dd6

Please sign in to comment.