Skip to content

bvankampen/kubeconfig-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Kubernetes Kubeconfig Cluster Selector

Screenshot

Requirements:

  • go 1.22

Usage:

NAME:
   cluster - Select kubeconfig

USAGE:
   ks [global options] command [command options] [arguments...]

VERSION:
   1.2 (bf8ed0e)

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --debug        Enable debug
   --help, -h     show help
   --version, -v  print the version

Build:

make

Install:

make install

or download binary in releases.

Config:

~/.config/ks.conf

kubeconfigDir: ~/.kube
kubeconfigFile: config
extraKubeconfigDirs:
    - ~/Downloads
showKubeconfig: true
createLink: true

Note:

If the config option createLink is set to true and the kubeconfig file ~/.kube/config exists or it's set to false and the config file is not managed by ks, then you need to remove the kubeconfig file first. This is a safety measure to not override existing configurations and this file needs to be removed or rename by hand.

About

Simple Kubernetes Kubeconfig Cluster Selector

Resources

License

Stars

Watchers

Forks

Packages

No packages published