k8s 导出pod日志脚本
for i in `kubectl get pod|egrep hnnz-node|awk '{print $1}'`;do echo "$i=======================" >>0822.log; kubectl logs ${i} --since=3h >>0822.log;done
时来天地皆同力,运去英雄不自由
for i in `kubectl get pod|egrep hnnz-node|awk '{print $1}'`;do echo "$i=======================" >>0822.log; kubectl logs ${i} --since=3h >>0822.log;done