Fix apiserver port when upgrading (#6136)

This commit is contained in:
Mateus Caruccio 2020-05-18 05:21:36 -03:00 committed by GitHub
parent d8a61b94a9
commit a5af58c05a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
---
- name: kubeadm | Check api is up
uri:
url: "https://{{ ip | default(fallback_ips[inventory_hostname]) }}:6443/healthz"
url: "https://{{ ip | default(fallback_ips[inventory_hostname]) }}:{{ kube_apiserver_port }}/healthz"
validate_certs: false
when: inventory_hostname == groups['kube-master']|first
register: _result