kx

command module
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 8 Imported by: 0

README

kx - Time-box your Kubernetes sessions

GitHub Release GitHub Actions Workflow Status Go Report Card GitHub License

kx is a command line utility that lets you switch into a Kubernetes context for short period of time.

It's designed to help you reduce the risk of accidentally making changes to the wrong environment when working with lots of different clusters.

Just run kx, select your context, and use your shell as you would do normally. Once time is up, you'll be asked if you'd like to extend your session or wrap things up.

kx tries to be polite, so if time runs out whilst you're deep in a terminal UI you'll only be interrupted once you return to your shell.

Don't worry, kx won't kill helm mid flow!

Get Started

You'll need go 1.24, and be running Mac OSX or Linux with a zsh, bash or sh shell.

go install github.com/talss89/kx@latest

Then just run:

kx

To control the duration of the session (default is 5 minutes):

kx 30s

To dive straight into a named context:

kx --ctx your-context

Demo

asciicast demo

State of the project

kx is a small personal project which I'll continue to develop gradually. Please feel free to raise any issues, or contribute via PR.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL