mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-23 19:06:33 +01:00
Debugging with journalctl.
This commit is contained in:
parent
ad1afeebb6
commit
219c089243
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user