This tutorial leverages the Microsoft Azure to streamline provisioning of the compute infrastructure required to bootstrap a Kubernetes cluster from the ground up. Sign up for $200 in free credits. In Azure Free Trial there is a limit of 4 Cores available, therefore tutorial instructions must be changed to create 4 nodes instead of 6 (2 controllers and 2 workers).
Estimated cost to run this tutorial: $0.4 per hour ($10 per day).
The compute resources required for this tutorial will not exceed the Microsoft Azure free tier.
Follow the Microsoft Azure CLI 2.0 documentation to install and configure the az
command line utility.
Verify the Microsoft Azure CLI 2.0 version is 2.1.0 or higher:
az --version
The guide assumes you've installed the Azure CLI 2.0, and will be creating resources in the eastus2
location, within a resource group named kubernetes
. To create this resource group, simply run the following command:
az group create -n kubernetes -l eastus2
Use the
az account list-locations
command to view additional locations.
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.
Enable
synchronize-panes
:ctrl+b
thenshift :
. Then typeset synchronize-panes on
at the prompt. To disable synchronization:set synchronize-panes off
.