tools:k9s-short-cuts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tools:k9s-short-cuts [2026/06/19 14:16] – removed mc | tools:k9s-short-cuts [2026/06/19 14:17] (current) – created mc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== k9s Shortcuts ====== | ||
| + | Quick reference for navigating and operating a Kubernetes cluster with [[https:// | ||
| + | |||
| + | ===== Launch ===== | ||
| + | |||
| + | <code bash> | ||
| + | k9s # default context, all namespaces | ||
| + | k9s -n my-namespace | ||
| + | k9s --context staging | ||
| + | k9s --readonly | ||
| + | k9s -c pods # jump straight to a resource view | ||
| + | k9s --kubeconfig ~/ | ||
| + | </ | ||
| + | |||
| + | ===== Command mode — resource views ===== | ||
| + | |||
| + | Open with '' | ||
| + | |||
| + | ^ View ^ Aliases ^ | ||
| + | | Pods | '' | ||
| + | | Deployments | '' | ||
| + | | Services | '' | ||
| + | | Nodes | '' | ||
| + | | Namespaces | '' | ||
| + | | ConfigMaps | '' | ||
| + | | Secrets | '' | ||
| + | | Ingress | '' | ||
| + | | PVCs | '' | ||
| + | | StatefulSets | '' | ||
| + | | DaemonSets | '' | ||
| + | | Events | '' | ||
| + | | CRDs | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | ===== Navigation ===== | ||
| + | |||
| + | ^ Key ^ Action ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | ''/'' | ||
| + | | ''?'' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | ===== Acting on a resource ===== | ||
| + | |||
| + | Highlight a row, then: | ||
| + | |||
| + | ^ Key ^ Action ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | ===== Logs ===== | ||
| + | |||
| + | From a pod or container, '' | ||
| + | |||
| + | ^ Key ^ Action ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | ''/'' | ||
| + | | '' | ||
| + | |||
| + | For multi-container pods, '' | ||
| + | |||
| + | ===== Filtering & search ===== | ||
| + | |||
| + | * ''/ | ||
| + | * ''/ | ||
| + | * ''/ | ||
| + | * '' | ||
| + | * Sort columns: '' | ||
| + | |||
| + | ===== Contexts & namespaces ===== | ||
| + | |||
| + | < | ||
| + | :ctx # interactive context switcher | ||
| + | :ctx staging | ||
| + | :ns # namespace switcher | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | ===== Networking ===== | ||
| + | |||
| + | There is no single " | ||
| + | |||
| + | ==== Networking resource views ==== | ||
| + | |||
| + | ^ Type ^ Aliases ^ Shows ^ | ||
| + | | Services | '' | ||
| + | | Endpoints | '' | ||
| + | | EndpointSlices | '' | ||
| + | | Ingress | '' | ||
| + | | IngressClasses | '' | ||
| + | | NetworkPolicies | '' | ||
| + | | Pods | '' | ||
| + | | Nodes | '' | ||
| + | |||
| + | If your CNI exposes CRDs they' | ||
| + | |||
| + | ==== Networking keys ==== | ||
| + | |||
| + | ^ Key ^ On ^ Action ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | ''/'' | ||
| + | |||
| + | ==== Port-forward & benchmark ==== | ||
| + | |||
| + | - Highlight a pod or service → '' | ||
| + | - '' | ||
| + | - From a forward, '' | ||
| + | |||
| + | ==== Debug flow ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | ===== Tips ===== | ||
| + | |||
| + | * '' | ||
| + | * Per-context skins are the best safeguard against acting on the wrong cluster — make prod red. | ||
| + | * '' | ||
| + | * If a CRD doesn' | ||
| + | * '' | ||
| + | * ''?'' | ||
tools/k9s-short-cuts.1781878579.txt.gz · Last modified: by mc
