Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kvaps/kubectl-use
Plugin for simple switch kubernetes contexts and namespaces
https://github.com/kvaps/kubectl-use
krew-plugin kubectl kubectl-plugin kubectl-plugins
Last synced: 1 day ago
JSON representation
Plugin for simple switch kubernetes contexts and namespaces
- Host: GitHub
- URL: https://github.com/kvaps/kubectl-use
- Owner: kvaps
- License: apache-2.0
- Created: 2019-06-19T09:33:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-29T10:31:58.000Z (about 1 year ago)
- Last Synced: 2024-11-02T06:31:52.066Z (7 days ago)
- Topics: krew-plugin, kubectl, kubectl-plugin, kubectl-plugins
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 39
- Watchers: 1
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-use
README
# kubectl-use
Plugin for simple switch kubernetes contexts and namespaces
## Example usage
```bash
# kubectl use prod
Switched to context "prod".# kubectl use default
Switched to namespace "default".# kubectl use stage kube-system
Switched to context "stage".
Switched to namespace "kube-system".
```## Installation
using [krew](https://krew.sigs.k8s.io/):
kubectl krew index add kvaps https://github.com/kvaps/krew-index
kubectl krew install kvaps/useor using curl:
```bash
curl -LO https://github.com/kvaps/kubectl-use/raw/master/kubectl-use
chmod +x ./kubectl-use
sudo mv ./kubectl-use /usr/local/bin/kubectl-use
```
## AutocompletionCurrently krew does not support for installing completion, thus only curl method is available:
```bash
curl -LO https://github.com/kvaps/kubectl-use/raw/master/kubectl_complete-use
chmod +x ./kubectl_complete-use
sudo mv ./kubectl_complete-use /usr/local/bin/kubectl_complete-use
```