mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-06 08:37:00 +00:00
kubectl logs -l will print logs for pods with the same label, however it doesn't support pods with multi containers. This change adds support to it with --all-containers. Ussage: $ kubectl logs my-pod --all-containers $ kubectl logs -laa=bb --all-containers $ kubectl logs my-pod my-container --all-containers (err: --all-containers=true should not be specifiled with container name my-container)
6.4 KiB
6.4 KiB