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

编辑:添加了度量服务器的日志
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发布于 2022-08-25 10:45:01
我将我的集群升级到1.23.4,我的HPA升级到自动标注/v2API,现在一切正常,我想我的问题与这个问题有关,因为我的api有一个initContainer。
https://stackoverflow.com/questions/73474025
复制相似问题