k8s 查看pod流量_kubectl top查看k8s pod的cpu , memory使用率情况
To see the pods that use the most cpu and memory you can use thekubectl topcommand but it doesn’t sort yet and is also missing the quota limits and requests per pod. You only see the current usage:B..
To see the pods that use the most cpu and memory you can use the kubectl top command but it doesn’t sort yet and is also missing the quota limits and requests per pod. You only see the current usage:
Because of these limitations, but also because you want to gather and store this resource usage information on an ongoing basis, a monitoring tool comes in handy. This allows you to analyze resource usage both in real time and historically, and also lets you alert on capacity bottlenecks.
实际示例:
[root@]:~# kubectl top pod -n taobao-spider
NAME CPU(cores) MEMORY(bytes)
app-1375507206-spider-new-v1-0-55f8cbb5cb-29wnz 0m 76Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-2s2qj 0m 69Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-6q9w7 0m 71Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-7s59f 0m 74Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-96lsb 0m 73Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-fdglr 0m 71Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-h52th 0m 71Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-j26cx 0m 73Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-k95gz 0m 71Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-pv9w7 0m 75Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-r9mtz 0m 69Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-vq79m 0m 75Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-xzzbs 0m 70Mi
app-1375507206-spider-new-v1-0-55f8cbb5cb-zhjdb 0m 80Mi
app-183215290-spider-v1-0-76f57788d-8jfqm 93m 80Mi
app-2492659469-spider-new-v1-0-7fbf4d7c7d-vf552 20m 61Mi
app-3437963581-spider-v1-0-66cd9d7699-5z2vk 74m 108Mi
app-3437963581-spider-v1-0-66cd9d7699-79bwf 54m 75Mi
更多推荐
所有评论(0)