From 30832331b2d095b6fca5e2325d425ccc6bed158b Mon Sep 17 00:00:00 2001 From: "hang.jiang" Date: Fri, 12 May 2023 17:48:29 +0800 Subject: [PATCH] Fix Calico Installation 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 6a356719e21..20c1473e297 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: