设置node roles

pull/199/merge
gjmzj 2018-05-22 15:57:44 +08:00
parent 15bbc26d3f
commit fe1e5a65a5
3 changed files with 10 additions and 0 deletions

View File

@ -9,3 +9,6 @@
when: DEPLOY_MODE != "allinone" when: DEPLOY_MODE != "allinone"
ignore_errors: true ignore_errors: true
- name: 设置master节点role
shell: "{{ bin_dir }}/kubectl label node {{ NODE_IP }} kubernetes.io/role=master --overwrite"
ignore_errors: true

View File

@ -23,3 +23,6 @@
when: DEPLOY_MODE != "allinone" when: DEPLOY_MODE != "allinone"
ignore_errors: true ignore_errors: true
- name: 设置master节点role
shell: "{{ bin_dir }}/kubectl label node {{ NODE_IP }} kubernetes.io/role=master --overwrite"
ignore_errors: true

View File

@ -90,3 +90,7 @@
retries: 8 retries: 8
delay: 5 delay: 5
tags: upgrade_k8s, restart_node tags: upgrade_k8s, restart_node
- name: 设置node节点role
shell: "{{ bin_dir }}/kubectl label node {{ NODE_IP }} kubernetes.io/role=node --overwrite"
ignore_errors: true