-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[kubernetes] add kube-system-log-files option, collect some kubelet files #3869
Conversation
Having the config can be really helpful, same for the cpu/memory manager state. Signed-off-by: Etienne Champetier <[email protected]>
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
No secrets in newly collected data? (the env file: cant it contain some password?)? Re the option name: I would prefer something shorter due to the alignment, what about I dont know kubernetes, so I evaluate the PR just from |
On a kubeadm install, both files have chmod 644, and the parents folders have 755, so hopefully no secrets (I also looked at the docs but could have missed something)
will change to
|
83bb3b5
to
6af36e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine, pending the PEP8 failure for line 100 (just needs to be shortened).
Before I ack however - is there a reason we shouldn't just be collecting these regularly? I.E. not gated behind an option and just a default collection by the plugin?
Default kube log rotation is 10MB per file and keep 5 files, we collect 4 containers, |
If your cluster is completely broken you can't gather logs using kubectl / the API, so add an option to easily copy logs from the most critical pods. Signed-off-by: Etienne Champetier <[email protected]>
6af36e1
to
2a358b3
Compare
2 small enhancements to the kubernetes plugin
I'm open to proposal for another name than
kube-system-log-files
:Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines