Skip to content
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

deployment LOG_LEVEL don't have effect #32

Open
like-inspur opened this issue Oct 15, 2019 · 1 comment
Open

deployment LOG_LEVEL don't have effect #32

like-inspur opened this issue Oct 15, 2019 · 1 comment

Comments

@like-inspur
Copy link
Contributor

I install k8s-injector referencing examples/kubernetes/deployment.yaml, but no matter what value I config for LOG_LEVEL, the pod always output info level log and so many kube-probe logs like this:
10.233.98.0 - - [15/Oct/2019:02:05:07 +0000] "POST /mutate?timeout=30s HTTP/2.0" 200 74 "" "kube-apiserver-admission"
I1015 02:05:07.968371 1 webhook.go:584] Ready to write reponse ...
10.233.98.0 - - [15/Oct/2019:02:05:07 +0000] "POST /mutate?timeout=30s HTTP/2.0" 200 74 "" "kube-apiserver-admission"
10.110.18.103 - - [15/Oct/2019:02:05:10 +0000] "GET /health HTTP/2.0" 200 12 "" "kube-probe/1.14"
10.110.18.103 - - [15/Oct/2019:02:05:13 +0000] "GET /health HTTP/2.0" 200 12 "" "kube-probe/1.14"
10.110.18.103 - - [15/Oct/2019:02:05:20 +0000] "GET /health HTTP/2.0" 200 12 "" "kube-probe/1.14"
10.110.18.103 - - [15/Oct/2019:02:05:23 +0000] "GET /health HTTP/2.0" 200 12 "" "kube-probe/1.14"

@byxorna byxorna mentioned this issue Oct 20, 2019
@byxorna
Copy link
Contributor

byxorna commented Oct 20, 2019

@like-inspur LOG_LEVEL gets passed to glog's -v flag, but the log messages you show above are generated by the HTTP logging middleware (see https://github.com/tumblr/k8s-sidecar-injector/blob/master/cmd/main.go#L183) that unfortunately does not use glog. Currently, there is no way to reduce logging verbosity of HTTP responses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants