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>
This commit is contained in:
rtsp 2021-08-09 22:19:31 +07:00 committed by GitHub
parent a70fab2249
commit 82a9064d8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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