-
Notifications
You must be signed in to change notification settings - Fork 278
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
-log_dir和-log_file不生效 #300
Comments
Hi @liuxue-2000 , I have carefully reviewed your question. First, in klog v1.0.0, the options Second, if you built the image using the project's Dockerfile or Dockerfile.multi, please note that the image runs the program with non-root permissions. This means it won't work even if you start it with root permissions. Lastly, to save logs to a specific directory or file, you will need to use Kubernetes Storage. You can find more information here. Below is an example of a Deployment configuration that saves logs to a host directory: containers:
- command:
- /kube-eventer
- '--source=<source>'
- >-
--sink=<sink>
- '--log_dir=/var/log/kube-eventer'
...
volumeMounts:
- mountPath: /var/log/kube-eventer
name: volume-1732240867108
...
volumes:
- hostPath:
path: /tmp
type: ''
name: volume-1732240867108 |
I understand, thank you |
配置如下,在镜像中已授权,并使用root启动
是还需要其他权限?还是哪里配置不对呢
The text was updated successfully, but these errors were encountered: