diff --git a/sos/report/plugins/kubernetes.py b/sos/report/plugins/kubernetes.py index 30afa1bd0..106b6c2f8 100644 --- a/sos/report/plugins/kubernetes.py +++ b/sos/report/plugins/kubernetes.py @@ -46,6 +46,12 @@ class Kubernetes(Plugin): config_files = [ "/etc/kubernetes", "/run/flannel", + "/var/lib/kubelet/config.yaml", + "/var/lib/kubelet/kubeadm-flags.env", + "/var/lib/kubelet/*_manager_state", + ] + forbidden_paths = [ + "/etc/kubernetes/pki", ] resources = [ 'events', @@ -105,7 +111,7 @@ def check_is_master(self): def setup(self): self.add_copy_spec(self.config_files) - self.add_forbidden_path("/etc/kubernetes/pki") + self.add_forbidden_path(self.forbidden_paths) self.add_env_var([ 'KUBECONFIG',