Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Seeing following error log in quay.io/coreos/kube-rbac-proxy:v0.3.0
$ kubectl --context=prod logs kube-state-metrics-2405493521-7d362 -c kube-rbac-proxy-main
2018/05/22 05:35:26 http: proxy error: context canceled
2018/05/22 05:35:56 http: proxy error: context canceled
2018/05/22 05:36:26 http: proxy error: context canceled
2018/05/22 05:36:56 http: proxy error: context canceled
2018/05/22 05:37:26 http: proxy error: context canceled
2018/05/22 05:37:56 http: proxy error: context canceled
2018/05/22 05:38:26 http: proxy error: context canceled
2018/05/22 05:38:56 http: proxy error: context canceled
2018/05/22 05:39:26 http: proxy error: context canceled
2018/05/22 05:39:56 http: proxy error: context canceled
2018/05/22 05:40:26 http: proxy error: context canceled
2018/05/22 05:40:56 http: proxy error: context canceled
2018/05/22 05:41:26 http: proxy error: context canceled
2018/05/22 05:41:56 http: proxy error: context canceled
2018/05/22 05:42:26 http: proxy error: context canceled
2018/05/22 05:42:56 http: proxy error: context canceled
2018/05/22 05:43:26 http: proxy error: context canceled
2018/05/22 05:43:56 http: proxy error: context canceled
2018/05/22 05:44:26 http: proxy error: context canceled
2018/05/22 05:44:56 http: proxy error: context canceled
2018/05/22 05:45:26 http: proxy error: context canceled
2018/05/22 05:45:56 http: proxy error: context canceled
2018/05/22 05:46:26 http: proxy error: context canceled
2018/05/22 05:46:56 http: proxy error: context canceled
2018/05/22 05:47:26 http: proxy error: context canceled
2018/05/22 05:47:56 http: proxy error: context canceled
2018/05/22 05:48:26 http: proxy error: context canceled
2018/05/22 05:48:56 http: proxy error: context canceled
2018/05/22 05:49:26 http: proxy error: context canceled
2018/05/22 05:49:56 http: proxy error: context canceled
2018/05/22 05:50:26 http: proxy error: context canceled
2018/05/22 05:50:56 http: proxy error: context canceled
What you expected to happen:
No error logs
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version):$ kubectl --context=prod version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:**"v1.7.8**", GitCommit:"bc6162cc70b4a39a7f39391564e0dd0be60b39e9", GitTreeState:"clean", BuildDate:"2017-10-05T06:54:19Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.8+coreos.0", GitCommit:"bc6162cc70b4a39a7f39391564e0dd0be60b39e9", GitTreeState:"clean", BuildDate:"2017-10-11T20:39:17Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
I have tried increasing scrape interval to 120s. Still same error log.
using curl to get the metrics works.
$ curl -k -v https://172.42.140.9:8443/metrics -H "Authorization: Bearer <token>"
...
....
# HELP kube_daemonset_created Unix creation timestamp
# TYPE kube_daemonset_created gauge
...
...
Increasing the scrapeTimeout has fixed the issue.
Did really increasing scrapeTimeOut solve the issue? I am hitting no end with exact same issue.
I am finding the same error message except when I start the proxy and go to the Kubernetes Dashboard.
kubectl proxy
Starting to serve on 127.0.0.1:8001
I0720 10:30:23.365488 20664 log.go:172] http: proxy error: context canceled
I was not given this error before, and am able to authenticate using a secret token on the dashboard. Nothing shows up in the dashboard when I see this error.
i am install dashboard in server and run kubectl proxy
error
kubectl proxy
root@kubernetes:/# kubectl proxy --address 0.0.0.0 --accept-hosts '.*'
Starting to serve on [::]:8001
2019/12/24 08:07:43 http: proxy error: context canceled
Most helpful comment
I am finding the same error message except when I start the proxy and go to the Kubernetes Dashboard.
kubectl proxyStarting to serve on 127.0.0.1:8001I0720 10:30:23.365488 20664 log.go:172] http: proxy error: context canceledI was not given this error before, and am able to authenticate using a secret token on the dashboard. Nothing shows up in the dashboard when I see this error.