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
Empty node metrics with kubernetes v 1.11.0 #77
Comments
I have installed the
|
I have a similar problem, with kubernetes v1.11.0; I noticed that, the kubelet doesn't listen on the port 10255 on every nodes. |
I faced the same problem too. Solution that worked for me is to pass the following command line option:
i.e look in section spec/template/spec/command for something like: |
Yes the above-mentioned workaround work for me too!!! Before the changes errors: E0710 20:33:05.019675 1 summary.go:97] error while getting metrics summary from Kubelet worker01(172.31.0.11:10255): Get http://172.31.0.11:10255/stats/summary/: dial tcp 172.31.0.11:10255: getsockopt: connection refused After replacing the source value to : Getting the below expected output root@kube-master:~/kubernetes-project/metrics-server# kubectl top nodes
|
Yes, kubernetes recently started disabling the read-only port by default. I've got a PR in that changes metrics-server to use the secure port by default (part of #65). |
When I did the folowing step: in section spec/template/spec/command for something like:
I got the erros as below: namespace: kube-system Could anyone help me ? By changing RBAC authorization, it's fixed. |
yeah, it looks like you're missing the RBAC to let metrics server access the |
I was having this same problem in the version v0.3.0 do metrics "error while getting metrics summary from Kubelet k8s1(:10255): Get http://:10255/stats/summary/: dial tcp :10255: getsockopt: connection refused". To solve, i use the command $ kubectl -n kube-system edit deploy metrics-server and on session spec/template/spec/containers, i add
This procedure solve my problem |
What does this commit/MR/PR do? - Update RBAC settings for the metrics server Why is this commit/MR/PR needed? - Due to a bug, output below ``` error while getting metrics summary from Kubelet amd64-node-1(10.1.244.207:10250): request failed - "403 Forbidden", response: "Forbidden (user=system:serviceaccount:kube-system:metrics-server, verb=get, resource=nodes, subresource=stats)" ``` - Ref issue `kubernetes-sigs/metrics-server#77
What does this commit/MR/PR do? - Update RBAC settings for the metrics server Why is this commit/MR/PR needed? - Due to a bug, output below ``` error while getting metrics summary from Kubelet amd64-node-1(10.1.244.207:10250): request failed - "403 Forbidden", response: "Forbidden (user=system:serviceaccount:kube-system:metrics-server, verb=get, resource=nodes, subresource=stats)" ``` - Ref issue `kubernetes-sigs/metrics-server#77
Unfortunately I am still experiencing this issue for arm v7 (raspberry 4B) even though editing metrics server on both methods:
Or using
I still get no target for my cpu usage
|
When using the metrics server with the latest version of kubernetes the command
kubectl get --raw /apis/metrics.k8s.io/v1beta1/nodes
outputswhere there is an emtpy list for the node metrics even though this is a on a cluster I know has 4 nodes as
kubectl get nodes
prints outThe text was updated successfully, but these errors were encountered: