1.9.0 • Published 3 years ago
k8ss v1.9.0
k8ss
k8s cluster and namespace switcher
Prerequisites
nodejs
installed (tested in version 12)kubectl
installedk8s-config
folder in home directory, for example:
~
|-- k8s-config
|-- hangzhou
|-- config
|-- beijing
|-- config
Installation
npm install k8ss --global
Usage
List all configured clusters
k8ss list
Switch to cluster or namespace
# full usage:
k8ss switch --cluster=hangzhou --namespace=test
# switch namespace only without change cluster:
k8ss s --namespace=stage
Login
k8ss login
How
- move the related
config
file into~/.kube
- execute
kubectl config set-context $(kubectl config current-context) --namespace=<namespace>
FAQ
npm WARN checkPermissions Missing write access to /usr/local/nvm/versions/node/v12.13.1/lib/node_modules
Then you can install it locally by
npm i k8ss
and then run it as./node_modules/.bin/k8ss switch --namespace=xxx
.
1.9.0
3 years ago
1.8.2
3 years ago
1.8.1
3 years ago
1.8.0
3 years ago
1.8.4
3 years ago
1.8.3
3 years ago
1.7.16
5 years ago
1.7.15
5 years ago
1.7.14
5 years ago
1.7.13
5 years ago
1.7.12
5 years ago
1.7.0
5 years ago
1.6.0
6 years ago
1.4.0
6 years ago
1.3.0
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.6
6 years ago
1.0.4
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago