简体   繁体   English

查看 kubernetes pod 的最大使用量

[英]Check the maximum usage of kubernetes pod

I want to check the maximum and average of kubernetes Pod.我想检查 kubernetes Pod 的最大值和平均值。 and I tried to find it but cannot get any relevant information.我试图找到它,但无法获得任何相关信息。 Also, I checked the Lens (third-party software) but only get the current usage and it only shows usage, limit for past 1 hour.另外,我检查了镜头(第三方软件),但只得到了当前的使用情况,它只显示使用情况,过去 1 小时的限制。

How to find the maximum usage of Pod?如何找到 Pod 的最大使用量?

If you don't specify the ressources Limits in your config creation yaml file, it will takes by default those values :如果您未在配置创建 yaml 文件中指定资源限制,则默认情况下将采用这些值:

Create the Pod.创建 Pod。 The output shows that the Pod's container has a memory request of 256 MiB and a memory limit of 512 MiB.输出显示 Pod 的容器有 256 MiB 的内存请求和 512 MiB 的内存限制。 These are the default values specified by the LimitRange这些是 LimitRange 指定的默认值

You have more infos here你有更多信息在这里

You have an article here , if you want to specify your pods limit manually.如果你想手动指定你的 pod 限制,你有一篇文章在这里

PS: if you enable promotheus in your Lens, you can visualize your different metrics (pods usage and limits for the cpu, memory, network, and filessytem) PS:如果您在 Lens 中启用 promotheus,您可以可视化您的不同指标(Pod 使用情况和 CPU、内存、网络和文件系统的限制)

kubectl describe quota 

或者在不同的命名空间中:

kubectl describe quota --namespace=<your-namespace>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM