-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Check support of subnets for instanceTypes #7562
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
( º︵º ) |
Hi @misogihagi - AFAIK, instance type offerings are defined at either Region or AZ level. And looking at your logs, I notice
Can you please share the exact cloudformation error you're getting? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
I am sorry, but my AWS environment is suspending and I cannot try to deploy. provider.tf: terraform {
required_providers {
eksctl = {
source = "mumoshu/eksctl"
version = "0.15.1"
}
aws = {
source = "hashicorp/aws"
version = "3.30.0"
}
}
}
provider "eksctl" {}
provider "aws" {
region = "ap-northeast-3"
} main.tf: data "aws_availability_zones" "available" {
state = "available"
}
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "2.77.0"
name = "canary-test-vpc"
cidr = "10.0.0.0/16"
azs = data.aws_availability_zones.available.names
private_subnets = ["10.0.1.0/24", "10.0.2.0/24"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24"]
enable_nat_gateway = true
}
resource "eksctl_cluster" "main" {
name = "test_cluster"
region = "ap-northeast-3"
vpc_id = module.vpc.vpc.id
spec = <<-EOS
managedNodeGroups:
- spot: true
instanceTypes:
- t3.large
- t3a.large
- c3.large
- c4.large
- c5.large
name: test-cluster-nodes
vpc:
subnets:
public:
ap-northeast-3a:
id: ${module.vpc.public_subnets[0].id}
ap-northeast-3b:
id: ${module.vpc.public_subnets[1].id}
private:
ap-northeast-3a:
id: ${module.vpc.private_subnets[0].id}
ap-northeast-3b:
id: ${module.vpc.private_subnets[1].id}
EOS
} Anyway, nothing satisfies the condition of all instance types. |
Related to #7064 |
I already prepared VPC and subnets.
Here is my yaml:
When deployed, the following error occurs:
This is because there is no subnet that satisfies all of these instance types.
There are only one or two in any given subnet.
So if not all subnets can meet the instance type, it would be kind to tell the user that there are no subnets available.
The text was updated successfully, but these errors were encountered: