Skip to content

Latest commit

 

History

History
57 lines (31 loc) · 2.11 KB

01-prerequisites.md

File metadata and controls

57 lines (31 loc) · 2.11 KB

Prerequisites

Digital Ocean

This tutorial leverages Digital Ocean to streamline provisioning of the compute infrastructure required to bootstrap a Kubernetes cluster from the ground up. It would cost less then $2 for a 24 hour period that would take to complete this exercise.

There is no free tier for Digital Ocean. Make sure that you clean up the resource at the end of the activity to avoid incurring unwanted costs.

Digital Ocean CLI

Install the DO CLI

Follow the DO CLI documentation to install and configure the doctl command line utility.

The current walkthrough was done with version 1.60.0.

Verify the DO CLI version using:

doctl version

Set a Default Compute Region and Zone

This tutorial assumes a default compute region.

Go ahead and set a default compute region:

  • for a list of Digital Ocean regions, check here, though NOTE that for cli usage, all the regions need to be LOWERCASE
DO_REGION=lon1

configure the CLI tool to interact with your account

Follow along with the documentation to generate an access token, then use:

doctl auth init

to be prompted to enter it so you can interact with the DO API

Running Commands in Parallel with tmux

tmux can be used to run commands on multiple compute instances at the same time. Labs in this tutorial may require running the same commands across multiple compute instances, in those cases consider using tmux and splitting a window into multiple panes with synchronize-panes enabled to speed up the provisioning process.

The use of tmux is optional and not required to complete this tutorial.

tmux screenshot

Enable synchronize-panes: ctrl+b then shift :. Then type set synchronize-panes on at the prompt. To disable synchronization: set synchronize-panes off.

Next: Installing the Client Tools