gpt4 book ai didi

kubernetes - kubectl 命令,用于查找每个节点的最高内存消耗 pod

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

kubectl top pod --all-namespaces | sort --reverse --key 4 --numeric | head -10给出集群中的顶级 pod。如何获得每个节点的最高内存消耗 pod?

最佳答案

kubectl describe node node_name 会给你类似下面的内容。

  Namespace   Name  CPU Requests  CPU Limits    Memory Requests   Memory Limits     AGE
--------- ---- ------------ ---------- --------------- ------------- ---
0 (0%) 0 (0%) 0 (0%) 0 (0%) 11d
200m (5%) 0 (0%) 400Mi (5%) 600Mi (8%) 22h
25m (0%) 1 (25%) 512Mi (6%) 0 (0%) 14d
25m (0%) 1 (25%) 512Mi (6%) 0 (0%) 14d
0 (0%) 0 (0%) 0 (0%) 0 (0%) 14d
10m (0%) 0 (0%) 0 (0%) 0 (0%) 14d
400m (10%) 2 (50%) 2176Mi (29%) 1Gi (13%) 14d
1100m (27%) 6800m (170%) 1134217728 (14%) 5073741824 (65%) 14d
100m (2%) 0 (0%) 100Mi (1%) 100Mi (1%) 14d
100m (2%) 0 (0%) 0 (0%) 0 (0%) 14d
0 (0%) 0 (0%) 0 (0%) 0 (0%) 14d
100m (2%) 400m (10%) 30Mi (0%) 200Mi (2%) 14d
100m (2%) 400m (10%) 200Mi (2%) 512Mi (6%) 14d
100m (2%) 400m (10%) 200Mi (2%) 512Mi (6%) 14d
110m (2%) 2010m (50%) 256Mi (3%) 1152Mi (15%) 14d

关于kubernetes - kubectl 命令,用于查找每个节点的最高内存消耗 pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57470408/

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