Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi-container pod for "kubectl logs" #45275

Merged
merged 1 commit into from
Mar 30, 2018

Commits on Mar 27, 2018

  1. Support multi-container pod for "kubectl logs"

    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)
    CaoShuFeng committed Mar 27, 2018
    Configuration menu
    Copy the full SHA
    a06f007 View commit details
    Browse the repository at this point in the history