[英]metrics-server no metrics known for pod error during deployment
I have a newly created AWS EKS 1.18 Cluster, applications are deployed on it, everything is fine, test and load test are successful, namely, my HPA and metrics-server is working fine.我有一个新创建的 AWS EKS 1.18 集群,上面部署了应用程序,一切都很好,测试和负载测试都成功了,即我的 HPA 和 metrics-server 工作正常。
But when I make a deployment to a service, metrics-server is giving unable to fetch pod metrics for pod xxx: no metrics known for pod
for the newly deployed pod, then problem is being resolved and everything is fine again.但是当我对服务进行部署时,metrics-server unable to fetch pod metrics for pod xxx: no metrics known for pod
,然后问题正在解决,一切都很好。
My question is, is this an expected behaviour for metrics-server?我的问题是,这是度量服务器的预期行为吗? Or should I check my configs again?还是我应该再次检查我的配置?
Thank you very much.非常感谢。
There is a comment about that on github: github上有这样的评论:
Metrics Server is expected to report "no metrics known for pod" until cache will be populated. Metrics Server 预计会报告“没有已知的 pod 指标”,直到缓存被填充。 Cache can be empty on freshly deployed metrics-server or can miss values for newly deployed pods.新部署的指标服务器上的缓存可能为空,或者可能会丢失新部署的 pod 的值。
So if I understand correctly it's working as expected .因此,如果我理解正确,它会按预期工作。 I assume this problem is being solved after 60s as by default metrics are scraped every 60s.我假设这个问题在 60 秒后得到解决,因为默认情况下,每 60 秒都会抓取一次指标。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.