简单粗暴点
kubectl get pods -niot |grep iot-imei-report-rest|awk {'print $1'}|xargs kubectl logs -f -niot