loading OpenAPI spec for v1beta1.metrics.k8s.io failed with: failed to retrieve openAPI spec, http error: ResponseCode: 503, Body: service unavailable, Header:[问题解决]

安装 metrics-server 一直无法正常使用,日志报这个

loading OpenAPI spec for v1beta1.metrics.k8s.io failed with: failed to retrieve openAPI spec, http error: ResponseCode: 503, Body: service unavailable, Header: map[Content-Type:[text/plain; charset=utf-8] X-Content-Type-Options:[nosniff]]

我在下面的 issues 找到了解决办法:

https://github.com/kubernetes-sigs/metrics-server/issues/129

stackoverflow 的解答

https://stackoverflow.com/questions/54106725/docker-kubernetes-mac-autoscaler-unable-to-find-metrics

这里好像是忽略了 不安全的证书认证,生产不建议这样搞, issues 看到有人讲这样不安全。

posted @   山河已无恙  阅读(1705)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
历史上的今天:
2022-01-16 Error: failed to install CRD crds/crd-alertmanager.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"问题解决
点击右上角即可分享
微信分享提示