wait for api to become available

This commit is contained in:
Michael McCulloch 2024-02-05 07:41:51 -07:00
parent 8eef1aabd6
commit 57a3880428

View File

@ -9,7 +9,13 @@
- name: Allow pods on control plane (if configured).
command: "kubectl taint nodes {{ inventory_hostname_short }} node-role.kubernetes.io/control-plane-"
register: taint_removed
changed_when: "'removed' in taint_removed.stdout"
until: >
("untainted" in taint_removed.stdout) or
("not found" in taint_removed.stdout)
changed_when: "'untainted' in taint_removed.stdout"
failed_when: false
retries: 100
delay: 5
when:
- kubernetes_allow_pods_on_control_plane | bool
- join_ctrl_plane.changed