From 9cd7d663321db3c2109fbbaee35f3cc1bec0a0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=20=E8=88=AA?= Date: Tue, 16 May 2023 12:21:36 +0800 Subject: [PATCH] Fix Calico Installation (#10068) 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 6a356719e..20c1473e2 100644 --- a/roles/network_plugin/calico/tasks/install.yml +++ b/roles/network_plugin/calico/tasks/install.yml @@ -157,6 +157,9 @@ kubectl: "{{ bin_dir }}/kubectl" filename: "{{ kube_config_dir }}/kdd-crds.yml" state: "latest" + register: kubectl_result + until: kubectl_result is succeeded + retries: 5 when: - inventory_hostname == groups['kube_control_plane'][0] when: