我正在尝试在 kubernetes 中运行水平 pod 自动缩放器,想要根据 cpu 默认指标自动缩放我的 pod。为此,我安装了指标服务器,之后我可以看到指标 - metrics.k8s.io/v1beta1 ( kubectl api-versions
)。然后我尝试部署 prometheus-operator。但是在运行时kubectl top node/pod
- 我得到的错误是
error: Metrics not available for pod default/web-deployment-658cd556f8-ztf6c, age: 35m23.264812635s" and "error: metrics not available yet"
我需要运行 heapster 吗?