kubectx
Two command-line tools, kubectx and kubens, for switching Kubernetes contexts and namespaces quickly.
These buttons open the developer's own site, repository or store listing in a new tab. wares.gg does not host downloads.
1 more ways to get kubectx
Package managers
- Homebrew
brew install kubectx
About kubectx
The kubectx repository provides two small tools for kubectl users. kubectx switches between contexts, which usually means between clusters, and can launch read-only shells for a given context. kubens switches the active namespace and configures kubectl to use it.
Both save typing long kubectl config commands when you move between several clusters or namespaces during the day. Shell completion scripts are included in the repository.
Strengths
- Fast switching between clusters and namespaces
- Read-only shells for a context
- Shell completion included
Limitations
- Only useful alongside kubectl and Kubernetes
- Small scope by design
Details
- Pricing
- FreeFree and open source.
- License
- Apache-2.0
- Developer
- Ahmet Alp Balkan
- Platforms
- macOS, Linux, Command line
- How it runs
- Downloadable app
- Account
- Not required
- Works offline
- Yes
- Best suited for
- Kubernetes users who move between several clusters and namespaces
- Categories
- CLI tools, Container tools
- Last verified
- Added
- Provenance
- Facts checked against the developer's own pages and store listings, 1 sources on file.
Alternatives to kubectx
Compare allSoftware that can replace kubectx for an important use case, and what changes if you switch.
kubie
A command-line tool for switching Kubernetes contexts and namespaces in independent, isolated shells.
kubie gives each shell its own independent Kubernetes context and namespace and loads split config files, replacing kubectx and kubens, though its future development is under discussion.
Similar software
Related functionality, not necessarily a direct replacement.
Krew
A plugin manager for kubectl that finds, installs and updates kubectl plugins from a central index.
kubecolor
A command-line wrapper that adds color to kubectl output to make it easier to read.
Stern
A command-line tool that tails logs from many Kubernetes pods and containers at once.
Helm
A package manager for Kubernetes that installs, upgrades and rolls back applications described as charts.
Kompose
A command-line tool that converts Docker Compose files into Kubernetes or OpenShift resources.
nerdctl
A command-line tool for containerd that works like the docker command, including Compose support.