Kubernetes 部署 Metrics Server 获取集群指标数据

在Kubernetes集群中遇到'no metrics known for pod'错误?本文提供了解决方案,通过重新安装Metrics Server,特别是检查/deploy/1.8+目录下的配置文件,确保正确配置。参考了metrics-server GitHub仓库,针对Kubernetes 1.18.0和Metrics Server 0.3.6,创建并应用metrics-server.yaml文件进行安装。
摘要由CSDN通过智能技术生成

如果出现下面的错误: no metrics known for pod  请按照本文的方法重新安装,可能/deploy/1.8+ 文件没有修改出现问题

unable to fetch node metrics for node "k8s": no metrics known for node
E0703 14:52:39.716521       1 reststorage.go:160] unable to fetch pod metrics for pod kube-system/coredns-66bff467f8-b6mnm: no metrics known for pod
E0703 14:52:39.716543       1 reststorage.go:160] unable to fetch pod metrics for pod kube-system/kube-scheduler-k8s3: no metrics known for pod
E0703 14:52:39.716548       1 reststorage.go:160] unable to fetch pod metrics for pod kube-system/kube-controller-manager-k8s3: no metrics known for pod
E0703 14:52:39.716552       1 reststorage.go:160] unable to fetch pod metrics for pod kube-system/calico-node-67pwg: no metrics known for pod
E0703 14:52:39.716555       1 reststorage.go:160] unable to fetch pod metrics for pod kubernetes-dashboard/kubernetes-dashboard-5585794759-w7qgt: no metrics known for pod
E0703 14:52:39.716559       1 reststorage.go:160] unable to fetch pod metrics for pod kube-system/etcd-k8s3: no metrics known for pod
E0703 14:52:39.716563       1 reststorage.go:160] unable to fetch pod metrics for pod kube-system/kube-apiserver-k8s3: no metrics known for pod
E0703 14:52:39.716566       1 reststorage.go:160] unable to fetch pod metrics for pod kube-system/calico-kube-controller
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值