一些k8s 操作记录

瓶子里的一片海 / 2023-05-08 / 原文

获取集群内部单个节点的pod数量

for i in `cat hosts`;do echo $i;kubectl describe node $i |grep "Non-terminated Pods:";done