Overview
Proxy forkubectl with token-optimized output. Compacts pod lists, service tables, and log output.
Syntax
Subcommands
rtk kubectl pods
List pods with compact status.string
Kubernetes namespace
flag
List pods across all namespaces
rtk kubectl services
List services with compact networking info.rtk kubectl logs
Deduplicated pod logs.string
Container name (for multi-container pods)
flag
Follow log output
number
Number of lines to show
- Deduplicates repeated messages
- Groups similar log patterns
- Strips k8s metadata
Examples
List Pods in Namespace
View Pod Logs
List All Services
Implementation
Source:src/container.rs
Optimizations
- Status icons:
âRunning,đPending/CrashLoop,âšī¸Terminated - Container ratios:
(2/2)instead of full Ready/Total columns - Age formatting:
5hinstead of verbose duration - Port compaction:
:80â30080instead of full notation
Related Commands
- rtk docker - Docker operations
- rtk log - Log filtering
