https://github.com/fgribreau/kubectx
Fastest switch between #Kubernetes contexts 🏎
https://github.com/fgribreau/kubectx
cli kubectl kubernetes
Last synced: over 1 year ago
JSON representation
Fastest switch between #Kubernetes contexts 🏎
- Host: GitHub
- URL: https://github.com/fgribreau/kubectx
- Owner: FGRibreau
- Created: 2017-07-27T17:08:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T10:27:48.000Z (almost 2 years ago)
- Last Synced: 2024-10-08T09:54:40.231Z (over 1 year ago)
- Topics: cli, kubectl, kubernetes
- Language: JavaScript
- Homepage: https://twitter.com/FGRibreau
- Size: 1.15 MB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kubectx
:star::star::star::star::star::star::star::star::star::star::star::star::star::star::star::star::star::star:
**Checkout [kubectx-rs](https://github.com/FGRibreau/kubectx-rs) the rust equivalent ([smaller and faster](https://twitter.com/FGRibreau/status/890998705100292096)) with [pre-compiled binairies](https://github.com/FGRibreau/kubectx-rs)**.
:star::star::star::star::star::star::star::star::star::star::star::star::star::star::star::star::star::star:
Fastest switch between Kubernetes contexts 🏎.

### Setup
```bash
npm i kubectx -g
```
### Usage
```sh
➜ / kubectx
? Select kubectl context (Use arrow keys)
image-charts-production
❯ killbug-development
minikube
ouest-france-development
```
#### Next steps
I wish I could find an [inquirer](https://github.com/SBoudrias/Inquirer.js)-like library in Rust and rewrite this little tool in Rust instead.
- [x] rewrite in Rust
- [ ] support namespace switch as well (kubens)
#### Related work
kubectx is completly inspired by [kubectx](https://github.com/ahmetb/kubectx) from Ahmet Alp Balkan. I personally prefer the interactive way that's why this project exist :).