gpt4 book ai didi

Kubernetes 1.11 找不到指标堆

转载 作者:行者123 更新时间:2023-12-02 22:40:49 26 4
gpt4 key购买 nike

我在 Digital Ocean 上使用 Kubernetes 1.11,当我尝试使用 kubectl 顶级节点时,出现此错误:

Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)

但正如文档中所述,heapster 已被弃用,从 kubernetes 1.10 起不再需要

最佳答案

如果您正在运行较新版本的 Kubernetes 并且仍然收到此错误,则您的安装可能存在问题。

请注意,要在 kubernetes 上安装指标服务器,您应该首先通过键入以下内容来克隆它:

git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git

那么你应该安装它,不进入创建的文件夹,也不提及特定的 YAML 文件,仅通过:

kubectl create -f kubernetes-metrics-server/

这样所有服务和组件都已正确安装,您可以运行:

kubectl top nodes

kubectl top pods

并得到正确的结果。

关于Kubernetes 1.11 找不到指标堆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52860209/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com