From 5cf2883444f9ffebec3622ae28b1f1bda838d201 Mon Sep 17 00:00:00 2001 From: cleverhu Date: Wed, 2 Nov 2022 15:18:45 +0800 Subject: [PATCH] add retry for start calico kube controller (#9450) Signed-off-by: cleverhu Signed-off-by: cleverhu --- roles/kubernetes-apps/policy_controller/calico/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/kubernetes-apps/policy_controller/calico/tasks/main.yml b/roles/kubernetes-apps/policy_controller/calico/tasks/main.yml index 59a31e40c..e4169b237 100644 --- a/roles/kubernetes-apps/policy_controller/calico/tasks/main.yml +++ b/roles/kubernetes-apps/policy_controller/calico/tasks/main.yml @@ -33,6 +33,9 @@ state: "latest" with_items: - "{{ calico_kube_manifests.results }}" + register: calico_kube_controller_start + until: calico_kube_controller_start is succeeded + retries: 4 when: - inventory_hostname == groups['kube_control_plane'][0] - not item is skipped