linux 将for 循环写在命令行 $ for p in $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name); \ do kubectl logs --namespace=kube-system $p; done Linux 2023-09-27 125 点赞 1 评论 189 浏览