2016-02-10 18:51:39 +08:00
|
|
|
---
|
|
|
|
- hosts: kube-master
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Check the API servers are responding
|
2016-07-03 22:18:04 +08:00
|
|
|
uri:
|
2017-02-24 22:58:54 +08:00
|
|
|
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port }}/api/v1"
|
2016-02-10 18:51:39 +08:00
|
|
|
user: kube
|
2018-03-21 15:50:32 +08:00
|
|
|
password: "{{ lookup('password', inventory_dir + '/credentials/kube_user.creds length=15 chars=ascii_letters,digits') }}"
|
2016-02-10 18:51:39 +08:00
|
|
|
validate_certs: no
|
2017-10-16 03:41:17 +08:00
|
|
|
status_code: 200,401
|
2017-09-16 05:28:15 +08:00
|
|
|
when: not kubeadm_enabled|default(false)
|