安装 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