There are many references running simple nginx webserver running on EKS but not that many walkthrough for EKS fargate. Based on my experience setting up a production level django api server, I will demonstrate how to run django app running behind nginx webserver on next couple posts.
Please refer to github repo for sources
I will reuse the same infra setup that I have used on previous ECS fargate walkthrough. Refer to the cloudformation file for configuration. Follow Staging Infra Setup
on following link to setup.
How to deploy django app to ECS Fargate part2
There will be 2 subnets across 2 availability zones with public and private subnets. IGW and NAT gateway should be placed in one of public subnets and must have appropriate route table configured. Unlike previous setup, EKS fargate nodes must reside in private subnets and require more than two availability zones. Since fargate is serverless there are some restrictions compare to regular node based cluster.
ALB ingress controller