更新等待node状态Ready脚本

pull/164/head
gjmzj 2018-03-25 18:28:49 +08:00
parent 825a241ed3
commit 84b46057a7
1 changed files with 3 additions and 3 deletions

View File

@ -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