This is a demo guide of how to install kubernetes master and worker nodes on Microsoft Azure standalone virtual machines.
This guide is not intended as a solution for production purposes.
Pre-requisites
This guide assumes that you have a Microsoft Azure account and that you installed the Azure CLI and you are logged in to the respective subscription in Azure.
First steps
To create a resource group:
az group create -n rg_k8sdemo --location eastus2 --tags Purpose=Education
To create a VNET:
az network vnet create \ --resource-group rg_k8sdemo \ --name vnet-k8s-101519 \ --address-prefix 10.0.0.0/16 \ --subnet-name subnet-k8s-101519 \ --subnet-prefix 10.0.0.0/24
To create a virtual machine (as master):
az vm create \ --location eastus2 \ --size Standard_B1ms \ --resource-group rg_k8sdemo \ --image UbuntuLTS \ --computer-name my-k8s-master-00 \ --name k8s-101519-master-00 \ --vnet-name vnet-k8s-101519 \ --subnet subnet-k8s-101519 \ --storage-sku Standard_LRS \ --ssh-key-values .ssh/id_rsa.pub \ --tags role=master