Skip to content

Kbsh: Work Effectively with Multiple Kubernetes Clusters

License

Notifications You must be signed in to change notification settings

leizhag/kbsh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kbsh - Work Effectively with Multiple Kubernetes Clusters

PyPI version PyPI pyversions License

Kbsh accepts the same commands as Kubectl, except you don't need to provide the kubectl prefix.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-prefix-free.png

If you want to run a shell command rather than a Kubectl command, you can add the ! prefix to your command.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-non-kube-cmd.png

You can provide --context (or -c) option to switch the context, and --namespace (or -n) option to switch the namespace, before executing the command.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-switch.png

One man names a resource, many have to remember it. It may help to display all contexts and namespaces at the bottom of the shell so that no need to use config get-contexts and get ns.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-all-ctx.png

Built-in aliases:

  • g -> get
  • d -> describe
  • e -> exec -i -t
  • l `` -> ``logs
  • lt -> logs --tail
  • ld -> logs deploy/

Built-in short options:

  • -t -> --tail
  • -c -> --context

Although, do not support configuration yet.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-alias.png

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-highlight.png

Kbsh is forked from kube-shell, and keeps all its features.

pip install kbsh
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*

Kbsh has been working great for my personal use case. But given that its aim is to increase productivity and easy of use, it can be improved in a number of ways. If you have suggestions for improvements or new features, or run into a bug please open an issue here.

Kbsh is forked from kube-shell.

Kube-shell is inspired by AWS Shell, SAWS and uses awesome Python prompt toolkit

About

Kbsh: Work Effectively with Multiple Kubernetes Clusters

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 94.3%
  • Go 5.7%