AISlearning / devops-final-project

In this project we build a solution for sample application (Expense Tracker) with four microservices, a backend built in node, frontend built with Next.js (Node based framework), along with a MongoDB database and Redis caching DB that is scalable and can support zero to thousands of users.
0 stars 1 forks source link

AWS: Configure autoscaling with terraform for the EKS cluster #16

Open AISlearning opened 4 months ago

AISlearning commented 4 months ago

Configure autoscaling for your compute resources (e.g., AWS Auto Scaling groups, Kubernetes Horizontal Pod Autoscaler) to handle varying loads. Take a look at: autoscaling policies, criteria for scaling, how to simulate load to test autoscaling, commands to check the current scaling status, etc.

Chi91 commented 4 months ago

Helpful links:

https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest/submodules/karpenter

https://karpenter.sh/docs/getting-started/

https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest/examples/karpenter

Chi91 commented 4 months ago

error: resource mapping not found for name: "ec2nodeclass" namespace: "karpenter" from "nodeclass.yml": no matches for kind "EC2NodeClass" in version "karpenter.k8s.aws/v1beta1" ensure CRDs are installed first

even though helm_release installed

kubectl get crds | grep karpenter awsnodetemplates.karpenter.k8s.aws 2024-07-19T08:43:14Z provisioners.karpenter.sh 2024-07-18T13:05:13Z