mirror of https://github.com/easzlab/kubeasz.git
设置node roles
parent
15bbc26d3f
commit
fe1e5a65a5
|
@ -9,3 +9,6 @@
|
|||
when: DEPLOY_MODE != "allinone"
|
||||
ignore_errors: true
|
||||
|
||||
- name: 设置master节点role
|
||||
shell: "{{ bin_dir }}/kubectl label node {{ NODE_IP }} kubernetes.io/role=master --overwrite"
|
||||
ignore_errors: true
|
||||
|
|
|
@ -23,3 +23,6 @@
|
|||
when: DEPLOY_MODE != "allinone"
|
||||
ignore_errors: true
|
||||
|
||||
- name: 设置master节点role
|
||||
shell: "{{ bin_dir }}/kubectl label node {{ NODE_IP }} kubernetes.io/role=master --overwrite"
|
||||
ignore_errors: true
|
||||
|
|
|
@ -90,3 +90,7 @@
|
|||
retries: 8
|
||||
delay: 5
|
||||
tags: upgrade_k8s, restart_node
|
||||
|
||||
- name: 设置node节点role
|
||||
shell: "{{ bin_dir }}/kubectl label node {{ NODE_IP }} kubernetes.io/role=node --overwrite"
|
||||
ignore_errors: true
|
||||
|
|
Loading…
Reference in New Issue