mirror of https://github.com/easzlab/kubeasz.git
更新等待node状态Ready脚本
parent
825a241ed3
commit
84b46057a7
|
@ -75,8 +75,8 @@
|
|||
run_once: true
|
||||
|
||||
- name: 轮询等待node达到Ready状态
|
||||
shell: "{{ bin_dir }}/kubectl get node|grep {{ NODE_IP }}"
|
||||
shell: "{{ bin_dir }}/kubectl get node|grep {{ NODE_IP }}|awk '{print $2}'"
|
||||
register: node_status
|
||||
until: '"NotReady" not in node_status.stdout'
|
||||
until: node_status.stdout == "Ready" or node_status.stdout == "Ready,SchedulingDisabled"
|
||||
retries: 5
|
||||
delay: 2
|
||||
delay: 5
|
||||
|
|
Loading…
Reference in New Issue