Refactored kubeadm join process and fixed uncrodonng for master nodes

This commit is contained in:
mlushpenko
2018-02-06 15:43:05 +01:00
parent b472c2df98
commit 4e61fb9cd3
5 changed files with 3 additions and 11 deletions

View File

@@ -2,4 +2,4 @@
- name: Uncordon node
command: "{{ bin_dir }}/kubectl uncordon {{ inventory_hostname }}"
delegate_to: "{{ groups['kube-master'][0] }}"
when: (needs_cordoning|default(false)) and ( {%- if inventory_hostname in groups['kube-node'] -%} true {%- else -%} false {%- endif -%} )
when: needs_cordoning|default(false)