Tired of running kubectl logs for each pod separately? Stern streams logs from multiple pods simultaneously.
Install Stern:
# Mac brew install stern # Linux wget https://github.com/stern/stern/releases/download/v1.28.0/stern_linux_amd64
Usage:
# Tail all pods matching pattern stern my-app # All pods in namespace stern . -n production # Color-coded by pod, auto-follows new pods
Why Better: Kubectl shows one pod at a time. Stern shows all matching pods in real-time with color coding.
