mirror of https://github.com/easzlab/kubeasz.git
检测 ex-lb 的 kube-apiserver 是否正常 (#1215)
parent
bc779904f3
commit
0ad42fd874
|
@ -78,3 +78,18 @@
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 3
|
delay: 3
|
||||||
tags: restart_lb
|
tags: restart_lb
|
||||||
|
|
||||||
|
- name: 检查 ex-lb 的 kube-apiserver 是否正常
|
||||||
|
uri:
|
||||||
|
url: "https://{{ EX_APISERVER_VIP }}:{{ EX_APISERVER_PORT }}"
|
||||||
|
validate_certs: no
|
||||||
|
client_cert: "{{ cluster_dir }}/ssl/admin.pem"
|
||||||
|
client_key: "{{ cluster_dir }}/ssl/admin-key.pem"
|
||||||
|
register: result
|
||||||
|
until: result.status == 200
|
||||||
|
retries: 2
|
||||||
|
delay: 5
|
||||||
|
run_once: true
|
||||||
|
connection: local
|
||||||
|
|
||||||
|
# - debug: var="result"
|
Loading…
Reference in New Issue