Skip to content

Commit

Permalink
Update wait api task
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 29, 2024
1 parent b6fba4e commit baa75b0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tasks/front.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@
when: add_kube_api_server_options is changed

- name: wait Kube to start on "{{kube_wait_api_server_ip}}"
wait_for:
port: 6443
host: "{{kube_wait_api_server_ip}}"
delay: 5
uri:
url: "https://{{kube_wait_api_server_ip}}:6443/livez"
status_code: 200
register: result
until: result.status == 200
retries: 60
delay: 1
validate_certs: false

- set_fact:
KUBECONFIG: /etc/kubernetes/admin.conf
Expand Down

0 comments on commit baa75b0

Please sign in to comment.