:::: MENU ::::

TKGm 1.3 on AWS EC2 – Part 1

Goal of this article is summarize all the informations that i found useful in order to deploy TKGm on AWS. This is more or less personnal raw notes.
If you using it and you feel that something is missing. Ping me and I’ll update my article.

Set up my workstation:

I’ll do all the steps from my Mac M1, if you’re running on Windows steps may vary a bit, I’m not experienced with Windows but WSL should really help you here.
If you’re on Linux this should be really closed from what I’ll show here.

Prerequisite: tools installed on your machine:
kubectl
Docker Desktop
AWS Cli
Make sure to allocate a minimum of 6GB of memory for Docker Desktop:

Docker Desktop configuration

Install TKG tools:
Get the latest package here:
https://customerconnect.vmware.com/en/downloads/details?downloadGroup=TKG-131&productId=988&rPId=65946

Make sure to download the correct binaries, currently, the latest ones are the v1.3.1 and then untar:

tar -xvf tanzu-cli-bundle-v1.3.1-darwin-amd64.tar
sudo install core/v1.3.1/tanzu-core-darwin_amd64 /usr/local/bin/tanzu

Expected result:

tanzu version
  version: v1.3.1
  buildDate: 2021-05-07
  sha: e5c37c4
tanzu plugin clean
tanzu plugin install --local cli all
tanzu plugin list

Expected result:

tanzu plugin list
gunzip ytt-darwin-amd64-v0.31.0+vmware.1.gz
chmod ugo+x ytt-darwin-amd64-v0.31.0+vmware.1
sudo mv ./ytt-darwin-amd64-v0.31.0+vmware.1 /usr/local/bin/ytt
gunzip kapp-darwin-amd64-v0.36.0+vmware.1.gz
chmod ugo+x kapp-darwin-amd64-v0.36.0+vmware.1
sudo mv ./kapp-darwin-amd64-v0.36.0+vmware.1 /usr/local/bin/kapp
gunzip kbld-darwin-amd64-v0.28.0+vmware.1.gz
chmod ugo+x kbld-darwin-amd64-v0.28.0+vmware.1
sudo mv ./kbld-darwin-amd64-v0.28.0+vmware.1 /usr/local/bin/kbld
gunzip imgpkg-darwin-amd64-v0.5.0+vmware.1.gz
chmod ugo+x imgpkg-darwin-amd64-v0.5.0+vmware.1
sudo mv ./imgpkg-darwin-amd64-v0.5.0+vmware.1 /usr/local/bin/imgpkg

Create AWS user with IAM rights:

User creation
Set permissions
Final permissions
Backup the secret access key
.pem file is automatically downloaded on your computer
ssh-keygen -y -f Downloads/TKGmLab.pem > /Users/floriancasse/.ssh/rsa_TKGmLab.pub
export TKG_BOM_CUSTOM_IMAGE_TAG="v1.3.1-patch1"
ssh-keygen -y -f Downloads/TKGmLab.pem > /Users/floriancasse/.ssh/rsa_TKGmLab.pub
tanzu management-cluster create --ui

You should get a new browser browser window. Setup is then pretty straight forward, here few screenshots:

TKG UI Installer
Fill this with the credentials created before
leave default settings
Use development for a single node control plane. t2.large is fine.

Next part of the article will cover the deployment it self and the first configurations steps. Stay tuned ๐Ÿ™‚


So, what do you think ?