kubectl & kustomize & helm & helmfile version manager
Inspired by terraenv https://github.com/aaratn/terraenv
Install via Homebrew on OSx
$ brew tap nutellinoit/kubenvz
$ brew install kubenvz
via Homebrew on OSx
$ brew upgrade kubenvz
Download and install with:
wget https://github.com/nutellinoit/kubenvz/releases/download/v0.4.0/kubenvz_linux_x64_v0.4.0.tar.gz -O kubenvz.tar.gz
tar -zxvf kubenvz.tar.gz
sudo mv kubenvz /usr/local/bin/
Install a specific version of kubectl/kustomize/helm/helmfile , list available remote versions with kubenvz kustomize list remote
:
kustomize/v.X.X.X
use exact version to install
kustomize has lot of release, kubenvz filter all releases that are not cli executable
$ kubenvz kubectl install 1.16.0
$ kubenvz kustomize install 1.0.10
$ kubenvz helm install v3.1.0
$ kubenvz helmfile install v0.100.1
To list local installed version use:
kubenvz kustomize list local
To use a local installed version:
kubenvz kustomize use 1.0.10
To have a faster switch between version, install the kbnvz tool (working on macos and linux):
sudo wget https://github.com/nutellinoit/kubenvz/releases/download/v0.4.0/kbnvz_v0.4.0 -O /usr/local/bin/kbnvz
sudo chmod +x /usr/local/bin/kbnvz
To use the fast switcher script:
kbnvz kustomize 1.0.10
Create a virtualenv:
python3 -m venv .
Start virtualenv:
source bin/activate
Install requirements:
pip install -r requirements.txt