Browse Source

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 <git@rtsp.us>
pull/7864/head
rtsp 3 years ago
committed by GitHub
parent
commit
82a9064d8d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. 4
      roles/kubernetes-apps/ingress_controller/cert_manager/tasks/main.yml

4
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
Loading…
Cancel
Save