mirror of
https://github.com/ben1234560/k8s_PaaS.git
synced 2025-04-19 17:55:52 +08:00
Add. 追加命令-查看node的资源使用情况
This commit is contained in:
parent
a48d230ca6
commit
eef8f2929f
@ -58,6 +58,14 @@ kubectl cluster-info
|
||||
kubectl top node
|
||||
~~~
|
||||
|
||||
查看node的资源使用情况
|
||||
|
||||
~~~
|
||||
for node in `kubectl get node | awk '{print $1}'|grep -v NAME`;do echo "======$node"; echo "==Capacity:" ;kubectl describe node $node | grep -A 12 "Capacity:" | grep -E "cpu:|memory:|nvidia.com\/gpu|vcuda-core|vcuda-memory:"; echo "=request&limit:"; kubectl describe node $node |grep -E "cpu | memory |nvidia.com/gpu |vcuda-core |vcuda-memory " ;done
|
||||
~~~
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### 删(重启,遇事不决重启pod)
|
||||
|
Loading…
x
Reference in New Issue
Block a user