K is used to manage kubectl version, if you need to control k8s across large versions(v1.18 and v1.23), then this is the right tool for you.
go install github.com/zaunist/k@latest
curl -sSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/zaunist/k/main/install.sh | bash
K is used to manage kubectl version.
Usage:
k [command]
Available Commands:
clean Remove files from the package download directory
help Help about any command
install Download and install a version
ls List installed versions
uninstall Uninstall a version of kubectl
use Switch to specified version
version Print the current version
Flags:
-h, --help help for k
Use "k [command] --help" for more information about a command.
k install v1.23.0 // install v1.23.0 version
k use v1.22.0 // switch kubectl version to v1.22.0
k ls // list all installed version on your system
The project is inspired by g - Golang version manager