IT lexicon › Infra & Ops › kubectx

kubectx

Infra & Ops På svenska → Updated: 2026-05-26

CLI tool for quickly switching kubeconfig context and namespace. Ahmet Alp Balkan, 2017. Combines with fzf for an interactive UI. Standard in every serious K8s developer's dotfiles.

kubectx prod switches to prod cluster. kubens kube-system switches default namespace. Replaces clunky kubectl config use-context. Ahmet now works on Google Cloud Run. Similar tools: kubie (more feature-rich), k9s (full TUI for Kubernetes), kubectl-fzf (fuzzy completion). In CI/CD pipelines: use contexts directly without kubectx (more explicit, less overhead). Combined with powerline-prompt → show current context + namespace in the shell.

← Back to the lexicon