make calico installation more stable (#9227)
Signed-off-by: hang.jiang <hang.jiang@daocloud.io> Signed-off-by: hang.jiang <hang.jiang@daocloud.io>pull/9247/head
parent
acb6f243fd
commit
7ebb8c3f2e
|
@ -458,6 +458,9 @@
|
||||||
kubectl: "{{ bin_dir }}/kubectl"
|
kubectl: "{{ bin_dir }}/kubectl"
|
||||||
filename: "{{ kube_config_dir }}/calico-ipamconfig.yml"
|
filename: "{{ kube_config_dir }}/calico-ipamconfig.yml"
|
||||||
state: "latest"
|
state: "latest"
|
||||||
|
register: resource_result
|
||||||
|
until: resource_result is succeeded
|
||||||
|
retries: 4
|
||||||
when:
|
when:
|
||||||
- inventory_hostname == groups['kube_control_plane'][0]
|
- inventory_hostname == groups['kube_control_plane'][0]
|
||||||
- calico_datastore == "kdd"
|
- calico_datastore == "kdd"
|
||||||
|
|
Loading…
Reference in New Issue