Browse Source

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
蒋航 2 years ago
committed by GitHub
parent
commit
7ebb8c3f2e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. 3
      roles/network_plugin/calico/tasks/install.yml

3
roles/network_plugin/calico/tasks/install.yml

@ -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…
Cancel
Save