Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 589 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 589 Bytes

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 https://raw.githubusercontent.com/deis/k/master/k && chmod +x k