Show logs for all containers in a pod

kubectl logs

  • Show logs for containers in a pod.
    More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

kubectl logs --all-containers={{true}} {{pod_name}}

click the source code to copy install kubectl logs on any operating system with command-not-found.com