-
Generate the app build
cd my-app && yarn build
-
Dockerize the app
run_docker.sh
-
Deploy with Kubernetes
run_kubernetes.sh
Scripts and templated based on:
-
Create a VPC
In order to create the network infrastructure
aws cloudformation create-stack --stack-name cloud-devops-vpc-network --template-body file://./infra/vpc/network.yml --region=us-east-2
Template based on this official guide
-
Create a Cluster Role
aws cloudformation create-stack --stack-name cloud-devops-eks-cluster-role --template-body file://./infra/vpc/cluster.yml --region=us-east-2 --capabilities CAPABILITY_IAM
-
Create an EKS Cluster:
aws cloudformation create-stack --stack-name cloud-devops-eks-culster --template-body file://./infra/eks/cluster.yml --region=us-east-2
-
Create Amazon EKS worker node role
aws cloudformation create-stack --stack-name cloud-devops-eks-nodegroup-role --template-body file://./infra/vpc/nodegroup.yml --region=us-east-2 --capabilities CAPABILITY_IAM
-
Create Amazon EKS Nodegroup
aws cloudformation create-stack --stack-name cloud-devops-eks-nodegroup --template-body file://./infra/eks/nodegroup.yml --region=us-east-2
-
Update and rollout
run_eks_kubernetes