From ab11b0c16c64933b12e5e0d75324596e1dee5f97 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