specify grace period for draining

This commit is contained in:
Spencer Smith 2016-12-13 13:43:31 -05:00 committed by Matthew Mosesohn
parent cf3f733828
commit ab11b0c16c

View file

@ -5,8 +5,8 @@
delegate_to: "{{ groups['kube-master'][0] }}" delegate_to: "{{ groups['kube-master'][0] }}"
- name: Drain node - 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] }}" delegate_to: "{{ groups['kube-master'][0] }}"
- name: Sleep for grace period for draining - name: Sleep for grace period for draining
pause: seconds=30 pause: seconds=30