Move graceful upgrade test to debian canal HA, adjust drain

Graceful upgrades require 3 nodes
Drain now has a command timeout of 40s
This commit is contained in:
Matthew Mosesohn
2017-03-17 18:21:00 +03:00
parent c2c334d22f
commit c1b9660ec8
2 changed files with 8 additions and 2 deletions

View File

@@ -5,7 +5,13 @@
delegate_to: "{{ groups['kube-master'][0] }}"
- name: Drain node
command: "{{ bin_dir }}/kubectl drain --force --ignore-daemonsets --grace-period 30 --delete-local-data {{ ansible_hostname }}"
command: >-
{{ bin_dir }}/kubectl drain
--force
--ignore-daemonsets
--grace-period {{ drain_grace_period }}
--timeout {{ drain_timeout }}
--delete-local-data {{ ansible_hostname }}
delegate_to: "{{ groups['kube-master'][0] }}"
- name: Sleep for grace period for draining