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>
This commit is contained in:
parent
5336943a8c
commit
4c9d7dedb3
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue