首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Kubernetes Metrics Server没有为某些Pods所知的度量标准

Kubernetes Metrics Server没有为某些Pods所知的度量标准
EN

Stack Overflow用户
提问于 2022-08-24 13:25:59
回答 1查看 150关注 0票数 1

我有以下部署--一个是Django API,另一个是芹菜,当我运行命令获取豆荚的资源消耗时,它只返回芹菜,而不是api。造成这种情况的潜在原因是什么?假设相同的配置在另一个集群上运行良好

Kubernetes服务器版本: v1.22.5

编辑:添加了度量服务器的日志

代码语言:javascript
复制
I0824 13:28:05.498602       1 serving.go:342] Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key)
I0824 13:28:06.269888       1 requestheader_controller.go:169] Starting RequestHeaderAuthRequestController
I0824 13:28:06.269917       1 shared_informer.go:240] Waiting for caches to sync for RequestHeaderAuthRequestController
I0824 13:28:06.269966       1 configmap_cafile_content.go:201] "Starting controller" name="client-ca::kube-system::extension-apiserver-authentication::client-ca-file"
I0824 13:28:06.269981       1 shared_informer.go:240] Waiting for caches to sync for client-ca::kube-system::extension-apiserver-authentication::client-ca-file
I0824 13:28:06.270005       1 configmap_cafile_content.go:201] "Starting controller" name="client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file"
I0824 13:28:06.270025       1 shared_informer.go:240] Waiting for caches to sync for client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file
I0824 13:28:06.270512       1 secure_serving.go:266] Serving securely on [::]:8443
I0824 13:28:06.270577       1 dynamic_serving_content.go:131] "Starting controller" name="serving-cert::apiserver.local.config/certificates/apiserver.crt::apiserver.local.config/certificates/apiserver.key"
I0824 13:28:06.270593       1 tlsconfig.go:240] "Starting DynamicServingCertificateController"
W0824 13:28:06.270852       1 shared_informer.go:372] The sharedIndexInformer has started, run more than once is not allowed
I0824 13:28:06.277601       1 server.go:187] "Failed probe" probe="metric-storage-ready" err="no metrics to serve"
I0824 13:28:06.371038       1 shared_informer.go:247] Caches are synced for client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file 
I0824 13:28:06.371093       1 shared_informer.go:247] Caches are synced for RequestHeaderAuthRequestController 
I0824 13:28:06.371932       1 shared_informer.go:247] Caches are synced for client-ca::kube-system::extension-apiserver-authentication::client-ca-file
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-08-25 10:45:01

我将我的集群升级到1.23.4,我的HPA升级到自动标注/v2API,现在一切正常,我想我的问题与这个问题有关,因为我的api有一个initContainer。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73474025

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档