Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
kubernetes自动缩放与heapster存在问题_Kubernetes - Fatal编程技术网

kubernetes自动缩放与heapster存在问题

kubernetes自动缩放与heapster存在问题,kubernetes,Kubernetes,我在kubernetes上安装了heapster,我正在尝试自动缩放我的播客。。但我一直看到以下情况: 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) heapster服务本身 I1009 14:22:21.01

我在kubernetes上安装了heapster,我正在尝试自动缩放我的播客。。但我一直看到以下情况:

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)
heapster服务本身

 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 
我想让自动校准与库伯内特斯合作,有人有什么想法吗


我知道heapster已被弃用,但到目前为止,我无法更改或升级到metrics服务器。。因此,如果能得到一些帮助,我曾经看到过类似的错误。问题是RBAC问题,但错误日志有误导性。确保您为
pods.metrics.k8s.io
资源提供了
get
权限

请勾选类似问题:

注意:自Kubernetes 1.11起,从Heapster获取度量已被弃用。参考: