Debugging with journalctl.

This commit is contained in:
Jeff Geerling 2022-10-26 10:08:27 -05:00
parent ad1afeebb6
commit 219c089243

View File

@ -24,8 +24,23 @@
--ignore-preflight-errors={{ kubernetes_ignore_preflight_errors }} --ignore-preflight-errors={{ kubernetes_ignore_preflight_errors }}
{{ kubernetes_kubeadm_init_extra_opts }} {{ kubernetes_kubeadm_init_extra_opts }}
register: kubeadmin_init register: kubeadmin_init
failed_when: false # TODO REMOVE
when: (not kubernetes_init_stat.stat.exists) and (kubernetes_ignore_preflight_errors is defined) when: (not kubernetes_init_stat.stat.exists) and (kubernetes_ignore_preflight_errors is defined)
# TODO REMOVE
- name: Print kubeadm init output
debug: var=kubeadmin_init.stdout
# TODO REMOVE
- name: Get kubelet status
command: journalctl --no-pager -xeu kubelet
register: journalctl
changed_when: false
# TODO REMOVE
- name: Print kubelet status
debug: var=journalctl.stdout
- name: Print the init output to screen. - name: Print the init output to screen.
debug: debug:
var: kubeadmin_init.stdout var: kubeadmin_init.stdout