This repository shows examples and guides for using Terraform to provision a EKS (Elastic Kubernetes Service) Cluster on AWS
As well as the instructions below we've also created a suite of FAQ's that are worth reviewing if you experience any interesting challenges.
Leading on from session 3, this repository extends the provisioning aspects with pushing docker images to your own container registry and adopting a GitOps workflow using ArgoCD.
The main difference between this repository and the repository you have previously worked with is that we now also provision a container registry.
Specifically, you'll provision your own Elastic Container Registry (ECR)
You can see the new terraform code within the ecr.tf file. This will provision a container registry called "devops-bookstore-api".
You have probably destroyed your Kubernetes cluster following the previous session.
Follow through the Provisioning guide to re-provision your Kubernetes cluster.
The next step is to build the docker image locally and push it up to your newly created container registry.
Follow through the Pushing Image Guide for instructions on how to do this.
Now you can move on to getting the backend API Python app deployed via Argo.
Follow through the Argo setup and configuration steps
Great work! If you've got to here you should now be able to see the Argo Dashboard.
All your infrastructure is setup ready to go! Now you can head over to the GitOps repository to setup your workflow.
https://github.com/techreturners/lm-lab-gitops-approach
You can find the FAQs here.