Where Does Stern Store Configs?
Where Stern keeps configs on computers, for Kubernetes log tailing. Full paths are listed below. More below.
Last updated
Stern is log tailing with file configs. Your contexts live in its config files. Clusters come from kubeconfigs beside them.
Same config plus kubeconfigs means same tails on any machine. Exact flag names shift with releases. Keep kubeconfigs in version control. For moves, copy Stern configs plus kube access. Partial copies miss color themes that output depends on. Screenshots of settings help when support asks for reproduction steps later. Check the in app storage readout when sizes look wrong on different releases.
Where Stern Log Tails stores this, by platform
~/.config/stern (contexts, clusters via kubeconfig)
Contexts live in Stern config files at home. Clusters come from kubeconfigs. Copy both for moves. No log database exists locally.
Frequently asked questions
How do I move Stern configs to a new machine?
Copy the Stern config files to the new machine over USB, since contexts live there. Clusters follow kubeconfigs, not Stern itself. Match the release first, since flag names shift between versions.
Does Stern store cluster logs?
No. Stern tails pod logs to stdout without keeping a database. The computer holds config plus kube cache. Reinstalls reset views but never touch cluster logs. Back up the config files themselves for moves.
Notice an outdated path? Let us know.