LinuxCommandLibrary

kubie

manages Kubernetes contexts with isolated shells

TLDR

Switch context

$ kubie ctx [context]
copy
Switch namespace
$ kubie ns [namespace]
copy
List contexts
$ kubie ctx
copy
List namespaces
$ kubie ns
copy
Spawn shell in context
$ kubie ctx [context] -n [namespace]
copy
Exit kubie shell
$ exit
copy

SYNOPSIS

kubie command [options]

DESCRIPTION

kubie is a Kubernetes context and namespace manager that isolates each context switch in its own shell session. Unlike kubectx, which modifies the global kubeconfig state, kubie spawns a new subshell with environment variables pointing to a temporary kubeconfig, so each terminal window can independently operate against a different cluster and namespace without interfering with others.
This isolation model prevents a common source of errors in multi-cluster workflows where a context switch in one terminal unexpectedly affects commands running in another. Kubie can also list available contexts and namespaces, execute one-off commands against a specific context, and integrates with fzf for interactive selection. It is written in Rust for fast startup and minimal overhead.

PARAMETERS

ctx [CONTEXT]

Switch or list contexts.
ns [NAMESPACE]
Switch or list namespaces.
-n NAMESPACE
Specify namespace.
exec CONTEXT CMD
Execute in context.
--help
Display help information.

CAVEATS

Spawns subshells. Different from kubectx approach. Rust-based.

HISTORY

kubie was created to provide isolated context management avoiding the issues of global context switching.

SEE ALSO

kubectl(1), kubectx(1), kubens(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community