From 0ad42fd8748da71f5a2250c29bdf5da9d224dfc7 Mon Sep 17 00:00:00 2001 From: WeiLai Date: Tue, 20 Dec 2022 16:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=20=20ex-lb=20=E7=9A=84=20kub?= =?UTF-8?q?e-apiserver=20=E6=98=AF=E5=90=A6=E6=AD=A3=E5=B8=B8=20(#1215)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/ex-lb/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/roles/ex-lb/tasks/main.yml b/roles/ex-lb/tasks/main.yml index 1d3baaa..e4683c8 100644 --- a/roles/ex-lb/tasks/main.yml +++ b/roles/ex-lb/tasks/main.yml @@ -78,3 +78,18 @@ retries: 3 delay: 3 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" \ No newline at end of file