Skip to content

Commit

Permalink
[kubernetes] collect some kubelet files
Browse files Browse the repository at this point in the history
Having the config can be really helpful,
same for the cpu/memory manager state.

Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
  • Loading branch information
champtar authored and TurboTurtle committed Dec 13, 2024
1 parent 1b85b16 commit 37456a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sos/report/plugins/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 37456a9

Please sign in to comment.