From 1b52d6aa7a02cc2f1079141316fd4adfaca61fea Mon Sep 17 00:00:00 2001 From: Calin Cristian Andrei Date: Sun, 5 Dec 2021 17:56:38 +0000 Subject: [PATCH] debug --- tests/testcases/010_check-apiserver.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/testcases/010_check-apiserver.yml b/tests/testcases/010_check-apiserver.yml index e84bad26434..7689c8cd013 100644 --- a/tests/testcases/010_check-apiserver.yml +++ b/tests/testcases/010_check-apiserver.yml @@ -2,6 +2,16 @@ - hosts: kube_control_plane tasks: + - name: get kube-apiserver pods + command: | + journalctl -u kubelet.service + register: shell_out + + - name: debug + debug: + msg: | + {{ shell_out }} + - name: Check the API servers are responding uri: url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port | default(6443) }}/version"