Launch k9s terminal UI to interactively manage your Kubernetes cluster.
The editor is determined by (in order of precedence):
1. --editor flag
2. spec.editor from ksail.yaml config
3. EDITOR or VISUAL environment variables
4. Fallback to vim, nano, or vi
All k9s flags and arguments are passed through unchanged, allowing you to use
any k9s functionality. Examples:
ksail cluster connect
ksail cluster connect --editor "code --wait"
ksail cluster connect --namespace default
ksail cluster connect --context my-context
ksail cluster connect --readonly
Usage:
ksail cluster connect [flags]
Flags:
-c, --context string Kubernetes context of cluster
-d, --distribution Distribution Kubernetes distribution to use
--distribution-config string Configuration file for the distribution
--editor string editor command to use for k9s edit actions (e.g., 'code --wait', 'vim', 'nano')
-g, --gitops-engine GitOpsEngine GitOps engine to use (None disables GitOps, Flux installs Flux controllers, ArgoCD installs Argo CD) (default None)
-h, --help help for connect
-k, --kubeconfig string Path to kubeconfig file (default "~/.kube/config")
--local-registry string Local registry specification: [user:pass@]host[:port][/path] (e.g., localhost:5050, ghcr.io/myorg, ${USER}:${PASS}@ghcr.io:443/org)
Global Flags:
--timing Show per-activity timing output