我已经在kubernetes上安装了heapster,我正在尝试自动缩放我的pod..但我一直看到以下几点:
unable to get metrics for resource cpu: unable to fetch metrics from resource metrics API: the server could not find the requested resource (get pods.metrics.k8s.io)堆服务本身
I1009 14:22:21.014890 1 heapster.go:73] Heapster version v1.4.2
I1009 14:22:21.015226 1 configs.go:61] Using Kubernetes client with master "https://kubernetes.default" and version v1
I1009 14:22:21.015244 1 configs.go:62] Using kubelet port 10250
I1009 14:22:21.030070 1 heapster.go:196] Starting with Metric Sink
I1009 14:22:21.042806 1 heapster.go:106] Starting heapster on port 8082
E1009 14:30:05.000311 1 kubelet.go:280] Node ip-xxxxxx.eu-west-1.compute.internal is not ready
E1009 14:30:05.000342 1 kubelet.go:280] Node ip-xxxxxx.eu-west-1.compute.internal is not ready
E1009 14:30:05.000351 1 kubelet.go:280] Node ip-xxxxxx.eu-west-1.compute.internal is not ready
E1009 14:30:05.000357 1 kubelet.go:280] Node ip-xxxxxx.eu-west-1.compute.internal is not ready
E1009 14:30:05.000363 1 kubelet.go:280] Node ip-xxxxxx.eu-west-1.compute.internal is not ready
E1009 14:30:05.000370 1 kubelet.go:280] Node ip-xxxxxx.eu-west-1.compute.internal is not ready 我想让自动缩放与kubernetes一起工作,有人有什么想法吗?
我知道heapster已被弃用,但到目前为止,我无法更改或升级到metrics server。所以需要一些帮助
发布于 2018-11-19 20:08:32
我曾经看到过类似的错误。问题是RBAC问题,但错误日志具有误导性。请确保您提供了对pods.metrics.k8s.io资源的get权限。
检查这个类似的问题:Kubernetes Custom CRD: “Failed to list …: the server could not find the requested resource”
注意:从Heapster获取指标是从Kubernetes1.11开始的
deprecated。参考:Horizontal Pod Autoscaler
https://stackoverflow.com/questions/53371806
复制相似问题