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 47 点赞 0 评论 71 浏览