{"repo":"ahmetb/kubectx","free":true,"listed":false,"github":"https://github.com/ahmetb/kubectx","clone":"git clone https://github.com/ahmetb/kubectx.git","description":"Faster way to switch between clusters and namespaces in kubectl","language":"Go","stars":19945,"topics":["kubernetes","kubectl","kubectl-plugins","kubernetes-clusters"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"kubectx + kubens : Power tools for kubectl /badge.svg)\") This repository provides both kubectx and kubens tools. Install &rarr; What are kubectx and kubens ? kubectx is a tool to switch between contexts (clusters) on kubectl faster, and launch readonly shells for each context. kubens is a tool to switch between Kubernetes namespaces (and configure them for kubectl) easily. Here's a kubectx demo: ...and here's a kubens demo: Usage kubectx Switch to another cluster that's in kubeconfig: Switch back to previous cluster: Start an isolated shell that only has a single context: Start a read-only shell where write operations are blocked: Rename context: kubens Change the active namespace on kubectl: Go back to the previous namespace: Change the active namespace even if it doesn't exist: If you have fzf installed, you can also interactively select a context or cluster, or fuzzy-search by typing a few characters. To learn more, read interactive mode &rarr; Both kubectx and kubens support Tab completion on bash/zsh/fish shells to help with long context names. You don't have to remember full context names anymore. ----- Installation Package manager Command --- --- Homebrew (macOS & Linux) brew install kubectx MacPorts (macOS) sudo port install kubectx apt (Debian/Ubuntu) sudo apt install kubectx pacman (Arch Linux) sudo pacman -S kubectx Chocolatey (Windows) choco install kubens kubectx Scoop (Windows) scoop bucket add main && scoop install main/kubens main/kubectx winget (Windows) wing","default_branch":null,"files":null,"tree":[],"storefront":"/r/ahmetb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ahmetb/kubectx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}