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 看到有人讲这样不安全。 加油,愿被这世界温柔以待 ^_^
https://github.com/kubernetes-sigs/metrics-server/issues/129
https://stackoverflow.com/questions/54106725/docker-kubernetes-mac-autoscaler-unable-to-find-metrics