first cut of an upgrade process

This commit is contained in:
Spencer Smith
2017-02-14 18:51:13 +03:00
committed by Matthew Mosesohn
parent 948d9bdadb
commit 017a813621
3 changed files with 50 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
---
- name: Cordon node
command: kubectl cordon {{ ansible_hostname }}
delegate_to: "{{ groups['kube-master'][0] }}"
- name: Drain node
command: kubectl drain --force --ignore-daemonsets --delete-local-data {{ ansible_hostname }}
delegate_to: "{{ groups['kube-master'][0] }}"
- name: Sleep for grace period for draining
pause: seconds=30