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
kubeadm uses and configures kube-log-runner #124359
Comments
https://github.com/kubernetes/component-base/tree/master/logs/kube-log-runner /sig instrumentation |
/kind support |
/triage accepted |
I have found the solution, but I have a question why not integrate kube-log-runner into the kubernetes base image, such as kube-apiserver, kube-controller-manager, etc. The following is the correct configuration
|
In fact, the kubernetes base image already integrates the kube-log-runner binary.
see details for https://github.com/kubernetes/component-base/tree/master/logs/kube-log-runner#container-base-image Maybe @pohly @dims know more context? @system51 You can use the Here is the manifest:
|
@mengjiao-liu Thank you very much for your solution, it works after I tried it。 |
Seems to be resolved? Reopen if not... /close |
@pohly: Closing this issue. 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/test-infra repository. |
What happened?
klog command line flags are deprecated starting with Kubernetes v1.23 and removed in Kubernetes v1.26,I hope to use kube-log-runner to configure log output to a specified file,I deploy using kubeadm
What did you expect to happen?
I deploy using kubeadm,I hope to use kube-log-runner to configure log output to a specified file。How should I edit the kube-apiserver.yaml file
/apps/k8s/bin/kube-log-runner -log-file=/apps/k8s/log/kube-apiserver.log --also-stdout=false /apps/k8s/bin/kube-apiserver $KUBE_APISERVER_OPTS
How can we reproduce it (as minimally and precisely as possible)?
Deploy kubernetes using kubeadm
Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: