Files
cheatsheet-tldr/tldr/kubetail
2025-04-23 00:19:06 +00:00

26 lines
714 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubetail
> Utility to tail multiple Kubernetes pod logs at the same time.
> More information: <https://github.com/johanhaleby/kubetail>.
- Tail the logs of multiple pods (whose name starts with "my_app") in one go:
`kubetail {{my_app}}`
- Tail only a specific container from multiple pods:
`kubetail {{my_app}} {{[-c|--container]}} {{my_container}}`
- To tail multiple containers from multiple pods:
`kubetail {{my_app}} {{[-c|--container]}} {my_container_1}} {{[-c|--container]}} {my_container_2}}`
- To tail multiple applications at the same time separate them by comma:
`kubetail {{my_app_1}},{{my_app_2}}`