From 7ebb8c3f2eabf2a4a9ea264f9c6faaf72456d929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E8=88=AA?= Date: Wed, 31 Aug 2022 12:13:01 +0800 Subject: [PATCH] make calico installation more stable (#9227) Signed-off-by: hang.jiang Signed-off-by: hang.jiang --- roles/network_plugin/calico/tasks/install.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/network_plugin/calico/tasks/install.yml b/roles/network_plugin/calico/tasks/install.yml index 11d5d2f09..48b4a25bc 100644 --- a/roles/network_plugin/calico/tasks/install.yml +++ b/roles/network_plugin/calico/tasks/install.yml @@ -458,6 +458,9 @@ kubectl: "{{ bin_dir }}/kubectl" filename: "{{ kube_config_dir }}/calico-ipamconfig.yml" state: "latest" + register: resource_result + until: resource_result is succeeded + retries: 4 when: - inventory_hostname == groups['kube_control_plane'][0] - calico_datastore == "kdd"