Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

A Different Way to Download Kubectl

DZone's Guide to

A Different Way to Download Kubectl

Kubernetes has grown and grown to a 1GB download. If all you need is to control the cluster from outside, you don't need all that.

· Cloud Zone
Free Resource

What if you could learn how to use MongoDB directly from the experts, on your schedule, for free? We've put together the ultimate guide for learning MongoDB. Sign up and you'll receive instructions for how to get started!

In the Kubernetes documentation for accessing a cluster, there is a step to install kubectl, the CLI for working with clusters. This step assumes you've download a pre-compiled release of Kubernetes and then points you at a subdirectory to find kubectl for your operating system and architecture.

But, do you really want to download 1 GB and all of Kubernetes just to get the CLI for accessing a cluster?

There's an easier way.

Kubectl is available for download at:

https://storage.googleapis.com/kubernetes-release/release/

<VERSION TAG>/bin/<OS>/<ARCH>/kubectl 

Replace the <VERSION TAG>, <OS>, and <ARCH> with the values appropriate for your system. <VERSION TAG> is the tagged release, such as v1.4.1. The <OS> can be values such as darwin (for mac), linux, and windows. The possible <ARCH> values are 386 and amd64.

Note, the download is kubectl.exe for Windows.

That means you can get kubectl for Mac at version v1.4.1 with a curl like:

curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.1/bin/darwin/amd64/kubectl

This is a much easier and faster way to get kubectl.

Related Refcard:

What if you could learn how to use MongoDB directly from the experts, on your schedule, for free? We've put together the ultimate guide for learning MongoDBSign up and you'll receive instructions for how to get started!

Topics:
kubernetes ,cluster management ,cloud

Published at DZone with permission of Matt Farina, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}