make calico installation more stable (#9227)
Signed-off-by: hang.jiang <hang.jiang@daocloud.io> Signed-off-by: hang.jiang <hang.jiang@daocloud.io>
This commit is contained in:
parent
acb6f243fd
commit
7ebb8c3f2e
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue