This lab can be used to deploy all three clusters included in the foundational lab setup. You will execute a single script that calls all the scripts included in the step-by-step guides.
Note: The labs depending on a master
params.yaml
file that is used for environment specific configuration data. A sampleREDACTED-params.yaml
file is included at the root of this repo, named REDACTED-params.yaml. It is recommended you copy this file and rename it to params.yaml and place it in thelocal-config/
directory, and then start making your adjustments.local-config/
is included in the.gitignore
so your version won't be included in an any future commits you have to the repo.
Set the PARAMS_YAML environment variable to the path of your params.yaml
file. If you followed the recommendation, the value would be local-config/param.yaml
, however you may choose otherwise. This may be the case if you are using multiple params.yaml
files in the case of AWS and vSphere deployments.
# Update the the path from the default if you have a different params.yaml file name or location.
export PARAMS_YAML=local-config/params.yaml
Ensure that your copy of params.yaml
indicates your IaaS as aws
, azure
or vsphere
appropriately.
Ensure the az
CLI is installed and configured. The deploy all script will use az
to deploy TKG.
To run management cluster VMs on Azure, accept the license for their base Kubernetes version and machine OS.
az vm image terms accept --publisher vmware-inc --offer tkg-capi --plan k8s-1dot19dot1-ubuntu-1804
Now you can execute the following script to perform all of those tasks:
./scripts/deploy-all.sh
Note: This process should take about 30 minutes to complete.
Execute the following script to tear down your environment.
./scripts/delete-all.sh