Fixed waiting for scheduler and controller manager (#6893)
This commit is contained in:
parent
c36df6a78b
commit
75f0aaf4a1
1 changed files with 6 additions and 2 deletions
|
@ -92,8 +92,10 @@
|
||||||
when: container_manager in ['containerd', 'crio']
|
when: container_manager in ['containerd', 'crio']
|
||||||
|
|
||||||
- name: Master | wait for kube-scheduler
|
- name: Master | wait for kube-scheduler
|
||||||
|
vars:
|
||||||
|
endpoint: "{{ kube_scheduler_bind_address if kube_scheduler_bind_address != '0.0.0.0' else 'localhost' }}"
|
||||||
uri:
|
uri:
|
||||||
url: https://localhost:10259/healthz
|
url: https://{{ endpoint }}:10259/healthz
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
register: scheduler_result
|
register: scheduler_result
|
||||||
until: scheduler_result.status == 200
|
until: scheduler_result.status == 200
|
||||||
|
@ -101,8 +103,10 @@
|
||||||
delay: 1
|
delay: 1
|
||||||
|
|
||||||
- name: Master | wait for kube-controller-manager
|
- name: Master | wait for kube-controller-manager
|
||||||
|
vars:
|
||||||
|
endpoint: "{{ kube_controller_manager_bind_address if kube_controller_manager_bind_address != '0.0.0.0' else 'localhost' }}"
|
||||||
uri:
|
uri:
|
||||||
url: https://localhost:10257/healthz
|
url: https://{{ endpoint }}:10257/healthz
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
register: controller_manager_result
|
register: controller_manager_result
|
||||||
until: controller_manager_result.status == 200
|
until: controller_manager_result.status == 200
|
||||||
|
|
Loading…
Reference in a new issue