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

unable to save metrics: duplicate pod received #179

Closed
pdefreitas opened this issue Dec 3, 2018 · 4 comments
Closed

unable to save metrics: duplicate pod received #179

pdefreitas opened this issue Dec 3, 2018 · 4 comments

Comments

@pdefreitas
Copy link

pdefreitas commented Dec 3, 2018

I have setup metricts-server in my EKS cluster and I have tried with Helm and also the master of this repo.
Always with the same result. It cannot get metrics.

Cluster VPC has private DNS disabled, which makes me use "--kubelet-preferred-address-types=InternalIP" as I've seen in other issues as a proposed solution. However this generates another problem:

E1203 14:41:16.126907       1 reststorage.go:144] unable to fetch pod metrics for pod yyy: no metrics known for pod
E1203 14:41:46.134386       1 reststorage.go:144] unable to fetch pod metrics for pod yyy: no metrics known for pod
E1203 14:42:14.734994       1 manager.go:118] unable to save metrics: duplicate pod yyy received
E1203 14:42:16.141882       1 reststorage.go:144] unable to fetch pod metrics for pod yyy: no metrics known for pod
E1203 14:42:46.151174       1 reststorage.go:144] unable to fetch pod metrics for pod yyy: no metrics known for pod

Oh btw, I am setting the resources in my StatefulSet.

What is this related to?

@pdefreitas
Copy link
Author

Here is the deal, I am using HPA, and if you have just set the resources in your HPA and you don't set the limits it will behave like this. For now no warning events so I will just close this issue.

@zuoinlv
Copy link

zuoinlv commented Dec 12, 2018

@pdefreitas what does the "limits" mean in your comments and how to set it ?

@pdefreitas
Copy link
Author

pdefreitas commented Dec 26, 2018

@zuoinlv I don't know if this is still useful for you, but for reference if you don't set in the resources of your StatefulSet both values for requests and limits (cpu/ram), it will behave like I have described in the first comment.

@llussy
Copy link

llussy commented Jan 11, 2019

I had the same problem,how do you solve it? Thank you

log

E0111 05:05:39.670286       1 manager.go:118] unable to save metrics: duplicate pod kube-system/kube-controller-manager-xxxx received
E0111 05:06:09.661404       1 manager.go:118] unable to save metrics: duplicate pod kube-system/kubernetes-dashboard-678f88b56b-f4jnw received

kubectl top pod

 kubectl top pod
W0111 13:07:07.089813   29907 top_pod.go:263] Metrics not available for pod kube-system/calico-kube-controllers-7779fd5f4c-t97gb, age: 4727h0m30.089793497s
error: Metrics not available for pod kube-system/calico-kube-controllers-7779fd5f4c-t97gb, age: 4727h0m30.089793497s

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

3 participants