restart scheduler and controller-manager too

This commit is contained in:
Matthew Mosesohn
2017-03-24 18:29:28 +03:00
parent 57ee304260
commit a3f568fc64
6 changed files with 24 additions and 18 deletions

View File

@@ -0,0 +1,3 @@
drain_grace_period: 30
drain_timeout: 40s

View File

@@ -1,9 +1,9 @@
---
- name: See if node is in ready state
command: "kubectl get nodes | grep {{ inventory_hostname }}"
shell: "kubectl get nodes | grep {{ inventory_hostname }}"
register: kubectl_nodes
delegate_to: "{{ groups['kube-master'][0] }}"
ignore_errors: true
failed_when: false
- set_fact:
needs_cordoning: >-