kubectl top 是当前内存 / CPU 值吗?

Is kubectl top the current memory / CPU value?

kubectl top是当前内存/CPU值还是某个时间段的平均值?

这是您发出命令时 pods 和节点的实际使用情况。

示例:

$ kubectl top nodes
NAME                                         CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
ip-xxx-xx-x-xxx.us-west-2.compute.internal   62m          6%     1014Mi          27%

API 返回时使用 62 毫核(0.062 核)、6% 的 CPU、1014 Mebybites 和 24% 的内存。

您还可以找到更多信息here