kubemngr is a cli tool to manage kubectl binaries for developers who work with different versions of Kubernetes clusters within their environments. This way the developer can keep in sync with the kubernetes cluster version. This tool was written in Golang using Cobra
99% of the case - developers will not have a problem using kubectl
across different versions of k8s clusters with api requests for getting pods, ingress and services etc. However, there is the small chance that some requests will return with:
> kubectl describe ing <name>
Error from server (NotFound): the server could not find the requested resource
This tool was written based on this experience and for learning opportunities/experiences.
- Add
~/.local/bin
to your$PATH
bash:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
zsh:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
- via Go:
go get -u github.com/zee-ahmed/kubemngr
It can also be installed by downloading the binary from the Github release page Github Releases
> kubemngr --help
This tool is to help developers run different versions of kubectl within their workspace and to support working
with different versions of Kubernetes clusters.
Usage:
kubemngr [command]
Available Commands:
help Help about any command
install A tool manage different kubectl versions inside a workspace.
list List installed kubectl binary versions. For available versions, see --remote
remove Remove a kubectl version from machine
use Use a specific version of one of the downloaded kubectl binaries
version Show the kubemngr client version
Flags:
-h, --help help for kubemngr
Use "kubemngr [command] --help" for more information about a command.
Please raise an issue or pull request if you have any issues, questions or features.