This tutorial leverages the Amazon Web Services 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.
The compute resources required for this tutorial exceed the Amazon Web Services free tier. Make sure that you clean up the resource at the end of the activity to avoid incurring unwanted costs.
To install OpenSSH using PowerShell, run PowerShell as an Administrator. Then, install the client components as needed:
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Follow the AWS CLI documentation to install and configure the aws
command line utility.
Verify the AWS CLI version using:
aws --version
Follow the AWS Tools for PowerShell documentation.
Verify the AWS Tools for PowerShell version using:
Get-AWSPowerShellVersion -ListServiceVersionInfo
This tutorial assumes a default compute region and zone have been configured.
Go ahead and set a default compute region:
$env:AWS_PROFILE = 'default'
$env:AWS_REGION = 'us-east-1'
You have to define the network prefixes:
# CIDR prefix of AWS Subnet for Private IPs of nodes
$K8sNodesCidrPrefix = '172.20'
# CIDR prefix of k8s Cluster internal network
$K8sClusterCidrPrefix = '172.21'
# CIDR prefix of k8s POD network
$K8sPodCidrPrefix = '172.22'