Skip to content
Always run the correct kubectl against your cluster
Branch: master
Clone or download
Jake Pearson
Latest commit e2e7a55 Nov 25, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Better variable names Nov 22, 2019 Update Jan 11, 2019

Automatically run the correct version of kubectl every time

This script will read the version of the Kubernetes server you are running. It will then download a new version of kubectl if needed and run your command with new kubectl. I named it k since most everyone appears to alias kubectl to k anyway.

So Simple

Getting Started

Download the file to somewhere in your path. Any time you would call kubectl ..., call k ... instead.

curl -OL && chmod +x k

You can’t perform that action at this time.