Doubt in auto scaling group created via eks terraform module

0

I have created an EKS cluster using the official AWS EKS Terraform registry module. However, when I try to deploy an application(2), it shows an error stating that no nodes are available. In the scaling configuration, I have set: already i have deployed one application. min_size = 1 max_size = 6 desired_size = 4 instance_types = ["t3.micro"] capacity_type = "SPOT"
Why is the auto-scaling not working? I can see that the auto-scaling group is created in the console

Naziya
已提问 2 个月前548 查看次数
1 回答
0

Ensure your EKS cluster's auto-scaling is set correctly. Verify that your Cluster Autoscaler is properly configured and your pod ResourceRequests and ResourceLimits are set to avoid resource contention. Also, ensure that your EC2 Auto Scaling Groups are configured to span multiple Availability Zones for better resilience and resource utilization. Make sure you're not hitting any Spot Instance capacity limits if using Spot Instances, and diversify your instance types to increase your chances of scaling successfully.

profile picture
专家
已回答 2 个月前
profile picture
专家
已审核 1 个月前
  • Adding on to the last part of this: Go to the ASG and look at its Activity History. Are there launch failures due to spot capacity? Spot best practices are to use at least a dozen different instance types and as many AZs as possible to reduce the chances of capacity related failures. Remember though that CAS in K8s requires all instance types to have the same amount of vCPUs, RAM, etc. So you might not be able to get a full dozen+ instance types, but you could at least add t3a.micro and t2.micro

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则