Every command you actually need. No fluff, no filler — just the terminal bible for Kubernetes operators.
| Flag | Shorthand | Description |
|---|---|---|
| --namespace | -n | Target a specific namespace |
| --all-namespaces | -A | Operate across all namespaces |
| --output | -o | Output format: yaml, json, wide, jsonpath |
| --watch | -w | Watch for real-time resource changes |
| --follow | -f | Follow log output continuously |
| --selector | -l | Filter by label selector |
| --filename | -f | Specify manifest file or directory |
| --container | -c | Target specific container in pod |
| --stdin + --tty | -it | Interactive terminal session |
| --dry-run=client | — | Preview command without applying changes |
| --context | — | Override current kubeconfig context |
| --kubeconfig | — | Path to kubeconfig file |
| --field-selector | — | Filter by field (e.g. status.phase=Running) |
| --grace-period | — | Seconds before force-killing (0 = immediate) |
| --record | — | Record command in resource annotations |