Skip to content

Latest commit

 

History

History
63 lines (50 loc) · 1.29 KB

README.md

File metadata and controls

63 lines (50 loc) · 1.29 KB

AWS EKS cluster example (using public modules)

EKS cluster provision from public modules and ALB Ingress Controller provision from Helm provider.

Prerequisites:

Pre-commit installation:

git secrets --install
pre-commit install -f
pre-commit run -a

Key points:

  • VPC resources are managed in standalone public module
  • Full managed AWS EKS with Spot and On-demand managed node_groups
  • ALB v2 ingress controller with Target Groups CRD (workaround via null_resource)

Create/Destroy Staging Infrastructure:

  1. Create Staging VPC and EKS cluster
make plan
make apply

As soon as cluster is ready, you should find a kubeconfig_* kubeconfig file in the current directory. Please note that test cluster is Public by default !!!

  1. Destroy Staging VPC and EKS cluster
make destroy

Example application deploy for Ingress testing:

  1. Go to example-app folder
cd example-app
  1. Apply manifests
kubectl apply -f . 
  1. Check ingress
kubectl get ing 
  1. Test endpoints
curl <ALB Ingress FQDN>/apple
curl <ALB Ingress FQDN>/banana
  1. Destroy manifests
kubectl delete -f .