Kubernetes ⎈
Using Gonzo with Kubernetes
Gonzo can now (as of version 0.3.0) natively stream logs from your Kubernetes clusters (using a kubeconfig) — no kubectl logs, no stern, no piping required. This guide covers the essential setup, commands, and filters you need to get started.
Overview
With Kubernetes mode enabled, Gonzo supports:
Direct log streaming from pods
Multiple namespaces at once
Kubernetes label selectors
Automatic namespace + pod columns
Interactive namespace/pod filtering (
Ctrl+k)Real-time updates with reconnection
Prerequisites
Before you begin, ensure:
You have access to a Kubernetes cluster
Your
kubeconfigis validYour account has read access to pod logs
Required RBAC
Quick Start
Stream logs from all pods
Start with the last 50 log lines
Watch a specific namespace
Watch multiple namespaces
Filter by label selector
Set-based selectors
Common Configuration Options
--k8s-enabled
Enable Kubernetes integration
--k8s-namespace N
Set namespace(s) to watch
--k8s-selector
Kubernetes label selector
--k8s-tail N
Number of historic log lines
--k8s-since N
Only logs newer than N seconds
--k8s-context
Use a specific kube context
--k8s-kubeconfig
Path to kubeconfig file
Example: Namespace + Selector + Tail
Interactive Filtering (Ctrl+k)
Inside Gonzo, press Ctrl+k to open the Kubernetes filter modal.
You can:
Select namespaces
Select pods
Apply changes instantly
Navigation: ↑/↓ to move • Space to toggle • Enter to apply • ESC to cancel

Kubernetes Display Mode
Gonzo automatically switches into K8s column mode when logs contain Kubernetes attributes.
Press c to toggle Kubernetes columns on/off.

Example Workflows
Troubleshoot a new deployment
Monitor both staging + prod backend pods
Troubleshooting
No logs appear
Verify kubectl access:
Selector not matching
Wrong context
High log volume
Narrow your label selector
Limit historic logs (
--k8s-tail)Limit time window (
--k8s-since)
Best Practices
Start with specific namespaces/selectors
Use Ctrl+k to refine quickly
Toggle columns with c when needed
Save common setups in config files
Use contexts to switch clusters cleanly
Last updated