addons/cert_manager: retries until webhook pods has been created (#7850)

Fix task 'Cert Manager | Wait for Webhook pods become ready' failed due to webhook pods don't exist yet by using `retries..until` trick like kubernetes-sigs/kubespray#7842

This fix should be removed in the future if the kubernetes/kubernetes#83242 is resolved.

Signed-off-by: rtsp <git@rtsp.us>
pull/7910/head
rtsp 2021-08-25 21:16:41 +07:00 committed by GitHub
parent 5336943a8c
commit 4c9d7dedb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@
command: "{{ bin_dir }}/kubectl wait po --namespace={{ cert_manager_namespace }} --selector app=webhook --for=condition=Ready --timeout=600s" command: "{{ bin_dir }}/kubectl wait po --namespace={{ cert_manager_namespace }} --selector app=webhook --for=condition=Ready --timeout=600s"
register: cert_manager_webhook_pods_ready register: cert_manager_webhook_pods_ready
when: inventory_hostname == groups['kube_control_plane'][0] when: inventory_hostname == groups['kube_control_plane'][0]
until: cert_manager_webhook_pods_ready is succeeded
retries: 30
delay: 10
- name: Cert Manager | Create ClusterIssuer manifest - name: Cert Manager | Create ClusterIssuer manifest
template: template: