k8s查找所有pod_如何在Kubernetes中获取Pod的资源使用情况?

本文介绍了在Kubernetes集群中部署Heapster以监控Pod资源使用情况的过程,并展示了使用`kubectl top`命令时遇到的ServiceUnavailable错误。
摘要由CSDN通过智能技术生成

Heapster -

I deployed Heapster using the following command

$ heapster/deploy/kube.sh start

kubectl get pods --all-namespaces

NAMESPACE NAME READY STATUS RESTARTS AGE

kube-system calico-node-hlcbl 2/2 Running 0 39m

kube-system calico-node-m8jl2 2/2 Running 0 35m

kube-system coredns-78fcdf6894-bl94w 1/1 Running 0 39m

kube-system coredns-78fcdf6894-fwx95 1/1 Running 0 39m

kube-system etcd-ctl.kube.yarnrm-pg0.utah.cloudlab.us 1/1 Running 0 39m

kube-system heapster-84c9bc48c4-qzt8x 1/1 Running 0 15s

kube-system kube-apiserver-ctl.kube.yarnrm-pg0.utah.cloudlab.us 1/1 Running 0 39m

kube-system kube-controller-manager-ctl.kube.yarnrm-pg0.utah.cloudlab.us 1/1 Running 0 38m

kube-system kube-proxy-nj9f8 1/1 Running 0 35m

kube-system kube-proxy-zvr2b 1/1 Running 0 39m

kube-system kube-scheduler-ctl.kube.yarnrm-pg0.utah.cloudlab.us 1/1 Running 0 39m

kube-system monitoring-grafana-555545f477-jldmz 1/1 Running 0 15s

kube-system monitoring-influxdb-848b9b66f6-k2k4f 1/1 Running 0 15s

When I used kubectl top, I encountered the following errors.

$ kubectl top pods

Error from server (ServiceUnavailable): the server is currently unable to handle the request (get services http:heapster:)

$ kubectl top nodes

Error from server (ServiceUnavailable): the server is currently unable to handle the request (get services http:heapster:)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值