kubeasz/04.kube-master.yml

15 lines
470 B
YAML
Raw Normal View History

# to set up 'kube-master' nodes
2017-11-11 19:14:21 +08:00
- hosts: kube-master
roles:
- kube-master
- kube-node
tasks:
- name: Making master nodes SchedulingDisabled
shell: "{{ bin_dir }}/kubectl cordon {{ inventory_hostname }} "
2019-05-28 23:46:22 +08:00
when: "inventory_hostname not in groups['kube-node']"
ignore_errors: true
- name: Setting master role name
shell: "{{ bin_dir }}/kubectl label node {{ inventory_hostname }} kubernetes.io/role=master --overwrite"
2018-05-22 15:57:44 +08:00
ignore_errors: true