From 1be55f3542acb98070c9f63ad3da8877ba9d7aeb Mon Sep 17 00:00:00 2001 From: Spencer Smith Date: Tue, 13 Dec 2016 13:43:31 -0500 Subject: [PATCH] specify grace period for draining --- roles/upgrade/pre-upgrade/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/upgrade/pre-upgrade/tasks/main.yml b/roles/upgrade/pre-upgrade/tasks/main.yml index 25f665a86..390e9e559 100644 --- a/roles/upgrade/pre-upgrade/tasks/main.yml +++ b/roles/upgrade/pre-upgrade/tasks/main.yml @@ -5,8 +5,8 @@ delegate_to: "{{ groups['kube-master'][0] }}" - name: Drain node - command: kubectl drain --force --ignore-daemonsets --delete-local-data {{ ansible_hostname }} + command: kubectl drain --force --ignore-daemonsets --grace-period 30 --delete-local-data {{ ansible_hostname }} delegate_to: "{{ groups['kube-master'][0] }}" - name: Sleep for grace period for draining - pause: seconds=30 \ No newline at end of file + pause: seconds=30