检测 ex-lb 的 kube-apiserver 是否正常 (#1215)

pull/1226/head
WeiLai 2022-12-20 16:28:01 +08:00 committed by GitHub
parent bc779904f3
commit 0ad42fd874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -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"