Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

Repository files navigation

kubeselect

Visually switch between configured Kubernetes Contexts in your KUBECONFIG on command line. Do not use any namespace switching tools as this would alter your configured contexts and thus make kubeselect useless.

Install

go install github.com/sbreitf1/kubeselect@latest

Usage

# show selection for all configured contexts
kubeselect
kubeselect select

# create contexts for all namespaces for clusters that are referenced by existing contexts
kubeselect update

# delete unreferenced clusters and users, aswell as invalid contexts
kubeselect prune

Use arrow keys up and down to navigate to another context, press enter to switch to the highlighted context. Currently selected context is marked as yellow. Press escape to exit without changing the selected context.

Arrow key left will select the parent cluster or collapse the selected one. Arrow key right will select the last context in the selected cluster or expand the selected cluster node. Type letters to select a context with given name in the expanded cluster node.

Comparison

  • kubeswitch: also tree-view based selection, but with mandatory K8s integration that requires some privileges on configured clusters.
  • kubectx: includes more functionality but does not offer visual selection.
  • kpick: same functionality but drops all unknown configuration values in your KUBECONFIG and thus might break it

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages