From ba2e2e68ccd3381c6a79c70103577eaf54b8d88b Mon Sep 17 00:00:00 2001 From: Neependra Khare Date: Thu, 29 Jan 2015 18:23:53 +0000 Subject: [PATCH] [kubernetes] add journal output for kube services Add journalctl output for the following kubernetes units: kube-apiserver kube-controller-manager kube-scheduler kube-proxy Signed-off-by: Neependra Khare Signed-off-by: Bryn M. Reeves --- sos/plugins/kubernetes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sos/plugins/kubernetes.py b/sos/plugins/kubernetes.py index 9c2df5e..38faeb2 100644 --- a/sos/plugins/kubernetes.py +++ b/sos/plugins/kubernetes.py @@ -36,6 +36,10 @@ class kubernetes(Plugin, RedHatPlugin): self.add_cmd_output("kubectl get -o json replicationController") self.add_cmd_output("kubectl get -o json events") self.add_cmd_output("journalctl -r -u kubelet") + self.add_cmd_output("journalctl -r -u kube-apiserver") + self.add_cmd_output("journalctl -r -u kube-controller-manager") + self.add_cmd_output("journalctl -r -u kube-scheduler") + self.add_cmd_output("journalctl -r -u kube-proxy") if self.get_option('podslog'): result = self.get_command_output("kubectl get pods") -- 1.9.3