Browse Source

specify grace period for draining

pull/1029/head
Spencer Smith 8 years ago
committed by Matthew Mosesohn
parent
commit
fbaef7e60f
1 changed files with 2 additions and 2 deletions
  1. 4
      roles/upgrade/pre-upgrade/tasks/main.yml

4
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
pause: seconds=30
Loading…
Cancel
Save