Skip to content

kubemngr is an cli tool to manage different versions of kubectl binaries

License

Notifications You must be signed in to change notification settings

richardcane/kubemngr

 
 

Repository files navigation

kubemngr

Releases License Powered By: GoReleaser Travis

Introduction

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.

Install

  1. Add ~/.local/bin to your $PATH

bash:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc

zsh:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
  1. 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

Usage

> 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.

Contributing

Please raise an issue or pull request if you have any issues, questions or features.

About

kubemngr is an cli tool to manage different versions of kubectl binaries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 92.7%
  • Makefile 7.3%