Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

tjamet/kubectl-switch

Repository files navigation

kubectl-switch

A wrapper over kubectl to ensure using a version that matches the server version.

Installation

From releases

Visit the latest release page of this repo and download the binary that matches your system.

From a command-line, run

curl -L -o /usr/local/bin/k https://github.com/tjamet/kubectl-switch/releases/download/v1.1/kubectl-switch-$(uname -s)-$(uname -m)
chmod +x /usr/local/bin/k

From sources

go get -u github.com/tjamet/kubectl-switch
go build -o /usr/local/bin/k github.com/tjamet/kubectl-switch

Usage

k version
k get ns

About

An entrypoint to kubectl that uses a version that matches the server one

Resources

License

Stars

Watchers

Forks

Packages