Skip to content

Latest commit

 

History

History
130 lines (83 loc) · 3.28 KB

01-client-tools.md

File metadata and controls

130 lines (83 loc) · 3.28 KB

Installing the Client Tools

Google Cloud Platform

This tutorial leverages the Google Cloud Platform to streamline provisioning of the compute infrastructure required to bootstrap a Kubernetes cluster from the ground up. Sign up for $300 in free credits.

Estimated cost to run this tutorial: $0.022 per hour ($1.03 per day).

The compute resources required for this tutorial exceed the Google Cloud Platform free tier.

Install Gcloud

Follow the Google Cloud SDK documentation to install and configure the gcloud command line utility.

Verify the Google Cloud SDK version is 240.0.0 or higher:

gcloud version

Set a Default Compute Region and Zone

This tutorial assumes a default compute region and zone have been configured.

If you are using the gcloud command-line tool for the first time init is the easiest way to do this:

gcloud init

Otherwise set a default compute region:

I pick region us-west2 just because it's the closest to me, you can pick any region you desire

gcloud config set compute/region us-west2

Set a default compute zone:

gcloud config set compute/zone us-west2-a

Install Kubectl

🍎

Easist way if you're on an 🍎 💻 is with homebrew:

$ brew install kubernetes-cli

Else just copy 🍝

$ curl -o kubectl https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/darwin/amd64/kubectl
$ chmod +x kubectl
$ sudo mv kubectl /usr/local/bin/

🐧

Linux users just copy 🍝

$ wget https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl

$ chmod +x kubectl

$ sudo mv kubectl /usr/local/bin/

Otherwise refer to this!

Install Helm

Binary downloads of the Helm client can be found on the Releases page.

If you want to use a package manager:

  • Homebrew users can use

    $ brew install kubernetes-helm.
  • Chocolatey users can use:

    $ choco install kubernetes-helm
  • Scoop users can use:

    $ scoop install helm
  • GoFish users can use:

    $ gofish install helm

Install Spin

🍎

curl -LO https://storage.googleapis.com/spinnaker-artifacts/spin/$(curl -s https://storage.googleapis.com/spinnaker-artifacts/spin/latest)/darwin/amd64/spin

chmod +x spin

sudo mv spin /usr/local/bin/spin

🐧

curl -LO https://storage.googleapis.com/spinnaker-artifacts/spin/$(curl -s https://storage.googleapis.com/spinnaker-artifacts/spin/latest)/linux/amd64/spin

chmod +x spin

sudo mv spin /usr/local/bin/spin

Sections

Previous Next
Prerequisites Create A New Cluster