From 82a9064d8df07c773b501997ee5a432991a86c09 Mon Sep 17 00:00:00 2001 From: rtsp <314429+rtsp@users.noreply.github.com> Date: Mon, 9 Aug 2021 22:19:31 +0700 Subject: [PATCH] addons/cert_manager: fix kubernetes-sigs#7085 by adding retries..until (#7842) Fix task 'Cert Manager | Apply ClusterIssuer manifest' failed due to service/endpoints updating delayed even though the wekhook pod status is ready. Signed-off-by: rtsp --- .../ingress_controller/cert_manager/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/kubernetes-apps/ingress_controller/cert_manager/tasks/main.yml b/roles/kubernetes-apps/ingress_controller/cert_manager/tasks/main.yml index 4217c6075..65640ae17 100644 --- a/roles/kubernetes-apps/ingress_controller/cert_manager/tasks/main.yml +++ b/roles/kubernetes-apps/ingress_controller/cert_manager/tasks/main.yml @@ -87,3 +87,7 @@ filename: "{{ kube_config_dir }}/addons/cert_manager/clusterissuer-cert-manager.yml" state: "latest" when: inventory_hostname == groups['kube_control_plane'][0] and cert_manager_clusterissuer_manifest is succeeded + register: cert_manager_apply_clusterissuer_manifest + until: cert_manager_apply_clusterissuer_manifest is succeeded + retries: 30 + delay: 10