Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.9 KB

README.md

File metadata and controls

66 lines (45 loc) · 1.9 KB

Platform Engineering Exercise

tfsec

Overview

This repository contains the code for the Platform Engineering Exercise. The exercise is to create a Kubernetes cluster in AWS using Terraform.

Table of Contents

Getting Started

Prerequisites

Architecture

The architecture sequence diagram can be found here.

Components

  • VPC

  • EKS Cluster

    • EKS Addon: EBS CSI Driver | The EBS CSI driver addon is added to the Amazon EKS cluster to allow Kubernetes to use Amazon Elastic Block Store (EBS) volumes as persistent volumes in the cluster.
  • ECR Repository

  • Flux2 with Helm (Optional)

  • nginx with Helm (Optional)

The dependencies can be found here. It has been generated using terraform-docs

Installing

terraform init
terraform apply

Uninstalling

terraform destroy

If you get an error related nodegroups, you can delete the nodegroup and cluster manually.

aws eks list-nodegroups --cluster-name exercise-eks
aws eks delete-nodegroup --cluster-name exercise-eks --nodegroup-name exercise-eks-default-winning-chipmunk
aws eks delete-cluster --name exercise-eks