c12s-kubespray/tests/testcases/010_check-apiserver.yml

12 lines
450 B
YAML
Raw Normal View History

2016-02-10 10:51:39 +00:00
---
- hosts: kube-master
tasks:
- name: Check the API servers are responding
uri:
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port | default(6443) }}/api/v1"
2016-02-10 10:51:39 +00:00
user: kube
password: "{{ lookup('password', credentials_dir | default(inventory_dir + '/credentials') + '/kube_user.creds length=15 chars=ascii_letters,digits') }}"
2016-02-10 10:51:39 +00:00
validate_certs: no
status_code: 200,401,403