-
Notifications
You must be signed in to change notification settings - Fork 526
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
kubelet: Add setting to change log level #2460
kubelet: Add setting to change log level #2460
Conversation
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.
Nice!
765497e
to
c435521
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.
There is a dependency between this PR and #2437. Whichever merges last will have to update the kubelet config template for k8s 1.24.
This adds a new `kubernetes.log-level` setting to allow configuration of the kubelet logging verbosity. With this, an end user can turn up verbosity if they are trying to troubleshoot something, or turn down verbosity if they don't need as many log messages. Signed-off-by: Sean McGinnis <[email protected]>
c435521
to
b696d6f
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.
✍️
Issue number:
Closes #1931
Description of changes:
This adds a new
kubernetes.log-level
setting to allow configuration of the kubelet logging verbosity. With this, an end user can turn up verbosity if they are trying to troubleshoot something, or turn down verbosity if they don't need as many log messages.Testing done:
Created EKS cluster using development build.
Checked
kubelet
command line arguments fromsystemctl status kubelet
and verified no-v
setting.Ran
apiclient set -j '{"kubernetes": {"log-level": 0}}'
Ran
apiclient get settings.kubernetes
and verified correct value forlog-level
.Checked
systemctl status kubelet
and verified-v 0
was one of the arguments used to launch the process.Ran
journalctl -u kubelet -f
and watched output to see if any additional log messages were being emitted.Ran
apiclient set -j '{"kubernetes": {"log-level": 9}}'
and checked setting withapiclient get
.Checked
systemctl status kubelet
and verified-v 9
was one of the arguments used to launch the process.Ran
journalctl -u kubelet -f
and watched additional recurring log messages showing all activity.Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.