-
Notifications
You must be signed in to change notification settings - Fork 133
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
Resizer doesnt support log to the file using klog methods #411
Comments
cc @gnufied |
@Madhu-1 @gnufied we need to use the But the problem is klog and k8s.io/component-base/logs has a common defined flag
And according to mine findings we cannot re-define any flag, so any suggestion for this. And the last way is to revert the cc @saku3 any suggestions? |
Or we should ask here to support editing of flag values https://github.com/golang/go/blob/master/src/flag/flag.go#L1010 |
The flags of klog are being deprecated as per accepted KEP - https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components What is the use case ? Why you want to log to a file? cc @pohly |
@gnufied we need to persist the log for the pod containers, and also support log rotation specific to the pod, so for that we need to create a log file, which is govern by klog. |
@gnufied all other sidecars have klog and only it's not present in the resizer, For now sidecars are not consistent with this functionality, if we are moving away from klog
Based on these the users can plan accordingly |
Technically, we are not moving away from klog, but we are are going to be adopting kubernetes/enhancements#2845. So I suspect - |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
External-resizer uses the klog for it's logging mechanism. Klog provides various methods to be used, including logging into the file by setting the flag,
flag.Set("log_file", "var/a5.log")
.But using the flag looks like it throughs error,
PS: Using it with ceph-csi pod container, rook/rook#14305
I suspect it is because
klog.InitFlags(nil)
andklog.Flush()
isn't called, but there can be some other bug too at the same timeThe text was updated successfully, but these errors were encountered: