Categorygithub.com/rymdlego/kubernetes-context-switcher
repositorypackage
0.1.3
Repository: https://github.com/rymdlego/kubernetes-context-switcher.git
Documentation: pkg.go.dev

# README

Kubernetes Context Switcher

A simple Go application to switch between Kubernetes contexts interactively using fzf.

Features

  • List all available Kubernetes contexts.
  • Filter contexts based on a search term.
  • Select a context interactively using fzf.
  • Option to unset the current context.

Prerequisites

  • Go (1.16 or later) environment setup
  • kubectl
  • fzf

Installation

go install github.com/rymdlego/kubernetes-context-switcher@latest

Optional alias:

alias kx=kubernetes-context-switcher

Usage

Run the application with an optional search term: (assuming we have the alias setup)

kx [search-term]