qmetrics.net

kubectx

Fast kubectl cluster and namespace context switcher

kubectx screenshot

Kubectx and kubens are companion command-line utilities that change kubectl cluster contexts and namespaces quickly. They also support isolated or read-only shells per context.

Overview

The kubectx utility switches among kubeconfig contexts so operators can jump between Kubernetes clusters without editing config files by hand. It can return to the previous context, rename contexts, and spawn shells limited to a single context, including read-only shells that block write operations.

Kubens adjusts the active namespace kubectl uses. It can revert to the prior namespace and force a namespace selection even when that namespace is not present yet.

Both tools integrate with fzf when it is installed, offering an interactive menu and fuzzy search over long context names. Tab completion is available on bash, zsh, and fish. Output colors can be tuned with environment variables or disabled entirely.

Installation paths include common package managers on Linux, macOS, and Windows, kubectl krew plugins, or standalone binaries added to PATH. They are designed as power tools alongside standard kubectl workflows.

Key features

  • Quick kubectl context switching
  • Namespace changes via kubens
  • Previous context and namespace recall
  • Isolated and read-only context shells
  • fzf interactive fuzzy selection
  • Shell tab completion support
  • Configurable terminal color output
  • Context rename in kubeconfig

Use cases

  • Managing many Kubernetes clusters locally
  • Rapid namespace changes during debugging
  • Safer exploration in read-only shells
  • Shortening long kube context names

Tags

Similar software

Kubernetes

Open-source container scheduling and management system

Kubernetes (K8s) manages containerized applications across many hosts. It automates deployment, scaling, and ongoing operations for grouped containers.

★ 129.4k⟳ yesterdayApache-2.0

Ansible

Agentless IT automation and configuration engine

Ansible automates configuration management, deployments, cloud provisioning, ad-hoc tasks, and multi-node orchestration using SSH without installing agents on managed hosts.

★ 71.7k⟳ 4 days agoGPL-3.0

Traefik Labs

Dynamic HTTP reverse proxy and load balancer for microservices

Traefik routes HTTP traffic to microservices and balances load across backends. It watches orchestrators and registries to update routes without manual restarts.

★ 65.8k⟳ 3 days agoMIT

Docker Compose

Multi-container Docker application definition tool

Docker Compose defines and runs multi-container applications described in a Compose file. A single docker compose up command starts the configured services, networks, and volumes together.

★ 39.1k⟳ todayApache-2.0
Build & DeploymentDesktop/CLI app

Firecracker

Secure lightweight microVM monitor for serverless workloads

Firecracker is a virtualization stack for running container and function workloads in microVMs. It pairs hardware isolation with low overhead for multi-tenant serverless-style hosting.

★ 38.3k⟳ yesterdayApache-2.0

K3s

Compact certified Kubernetes distribution for constrained environments

K3s packages production-ready Kubernetes in a single small binary with lighter memory use, aimed at edge, IoT, CI, development, and ARM deployments.

★ 34.5k⟳ 2 days agoApache-2.0