https://github.com/gjbae1212/kubectl-cred
kubectl-cred is a kubernetes plugin to which switch to contexts and namespaces and clusters using an interactive CLI.
https://github.com/gjbae1212/kubectl-cred
golang k8s krew krew-index krew-plugin kubernetes
Last synced: about 1 month ago
JSON representation
kubectl-cred is a kubernetes plugin to which switch to contexts and namespaces and clusters using an interactive CLI.
- Host: GitHub
- URL: https://github.com/gjbae1212/kubectl-cred
- Owner: gjbae1212
- License: mit
- Created: 2021-01-28T09:30:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-28T08:20:25.000Z (about 3 years ago)
- Last Synced: 2025-03-24T04:43:26.415Z (about 2 months ago)
- Topics: golang, k8s, krew, krew-index, krew-plugin, kubernetes
- Language: Go
- Homepage:
- Size: 1.26 MB
- Stars: 15
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubectl-cred
``` kubectl-cred``` is a kubernetes plugin to which switch to contexts and namespaces and clusters using an interactive CLI.
![]()
## OVERVIEW
``` kubectl-cred``` is a kubernetes plugin.
This plugin can switch not only context, namespace in k8s using an interactive UI, but also show all of namespaces on clusters and current context information beautifully.## HOW TO USE
```
# Switch context using an interactive CLI.
kubectl cred ctx# Switch namespace using an interactive CLI.
kubectl cred ns# Show your all of contexts information formatted tree.
kubectl cred ls# Show your current context information.
kubectl cred current# Rename context name in k8s config, using an interactive CLI.
kubectl cred rename
```## INSTALL
Support **x86_64**### Krew
```
$ kubectl krew index add gjbae1212 https://github.com/gjbae1212/kubectl-cred.git
$ kubectl krew install gjbae1212/cred
```### Etc
```
# homebrew
$ brew tap gjbae1212/kubectl-cred
$ brew install kubectl-cred# mac
wget https://github.com/gjbae1212/kubectl-cred/releases/download/v0.1.7/kubectl-cred_v0.1.7_Darwin_x86_64.tar.gz# linux
wget https://github.com/gjbae1212/kubectl-cred/releases/download/v0.1.7/kubectl-cred_v0.1.7_Linux_x86_64.tar.gz# windows
wget https://github.com/gjbae1212/kubectl-cred/releases/download/v0.1.7/kubectl-cred_v0.1.7_Windows_x86_64.tar.gz
```## LICENSE
This project is following The MIT.