kubectl tail logs from all replica containers

Nov 23, 2021

Replace the <namespace> and <app-name> to get the logs when there are multiple containers in the same pod or different pods

kubectl -n <namespace> logs -f deployment/<app-name> \
    --all-containers=true --since=10m
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.