摘要:
#!/bin/bash kubectl get deploy -n host | grep -v ' 0 ' | awk '{print $1}' > deploy.txt for deploy in `cat deploy.txt` do check_gpu=`kubectl describe d 阅读全文
摘要:
#!/bin/bash for node in `kubectl get node | grep node | awk '{print $1}'` do total_cpu=`kubectl describe node $node | grep cpu | awk '{print $2}' | se 阅读全文
摘要:
#!/bin/bash ##check workdir## if [ `ls /var/lib/docker/ | grep overlay2 | wc -l` -ne 0 ] then dir="/var/lib/docker/" else dir="/data/docker/" fi ##cle 阅读全文