mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
specify grace period for draining
This commit is contained in:
committed by
Matthew Mosesohn
parent
017a813621
commit
fbaef7e60f
@@ -5,7 +5,7 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user