k8s最近重启的pod

  kubectl get po -n namespace |awk 'BEGIN{a=0}NR!=1{if($3!="Running" || $5~"s" ){print $1,$3,$5;a++}}END{print a}'