Skip to content
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

InvalidParameterException: minSize can't be greater than desiredSize #298

Open
1 task done
ssajac opened this issue Aug 9, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@ssajac
Copy link

ssajac commented Aug 9, 2024

Terraform Version Details

Terraform v1.9.x

Terraform Variable File Details

No response

Steps to Reproduce

  1. Terraform plan
  2. Terraform apply

Expected Behavior

EKS Node Group is created successfully.

Actual Behavior

Error: creating EKS Node Group (): operation error EKS: CreateNodegroup, https response error StatusCode: 400, RequestID: , InvalidParameterException: minSize can't be greater than desiredSize

Additional Context

Hello,

We are on Terraform v1.9.x

We can't get past the error "minSize can't be greater that desiredSize".

In the Terraform plan excerpt below we can't figure out why "desired_size=0"; and we also don't know how to modify it to be > 0.

Any feedback is greatly appreciated

module.eks.module.eks_managed_node_group["default"].aws_eks_node_group.this[0] will be created

  • resource "aws_eks_node_group" "this" {
    • ami_type = (known after apply)

    • arn = (known after apply)

    • capacity_type = (known after apply)

    • cluster_name = "dva-prod-2-sas-eks"

    • disk_size = (known after apply)

    • id = (known after apply)

    • instance_types = [

      • "r5n.4xlarge",
        ]
    • labels = {

      • "kubernetes.azure.com/mode" = "system"
        }
    • node_group_name = (known after apply)

    • node_group_name_prefix = "default-"

    • node_role_arn = "arn:aws:iam::002472801454:role/dva-prod-eks-node-role"

    • release_version = (known after apply)

    • resources = (known after apply)

    • status = (known after apply)

    • subnet_ids = [

      • "subnet-026963353523add56",
      • "subnet-0b4d011b1f08303d8",
      • "subnet-0bb522610cbfbb4da",
        ]
    • tags = {

      • "Name" = "default"
      • "k8s.io/cluster-autoscaler/dva-prod-2-sas-eks" = "owned"
      • "k8s.io/cluster-autoscaler/enabled" = "true"
      • "project_name" = "viya"
      • "propagate_at_launch" = "true"
        }
    • tags_all = {

      • "Name" = "default"
      • "k8s.io/cluster-autoscaler/dva-prod-2-sas-eks" = "owned"
      • "k8s.io/cluster-autoscaler/enabled" = "true"
      • "project_name" = "viya"
      • "propagate_at_launch" = "true"
        }
    • version = "1.28"

    • launch_template {

      • id = "lt-073a6b59bcd8b383e"
      • name = (known after apply)
      • version = "1"
        }
    • scaling_config {

      • desired_size = 0
      • max_size = 5
      • min_size = 1
        }
    • timeouts {}

    • update_config {

      • max_unavailable_percentage = 33
        }
        }

References

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ssajac ssajac added bug Something isn't working new Added to an issue when it's new ;) labels Aug 9, 2024
@dhoucgitter dhoucgitter removed the new Added to an issue when it's new ;) label Aug 11, 2024
@ssajac
Copy link
Author

ssajac commented Aug 12, 2024

I believe this is where the error is coming from (as min_size '1' can't be greater than desired_size '0') but I can't figure out how the "scaling_config" block is formed; and how does it decide that desired_size is zero.

scaling_config {

desired_size = 0
max_size = 5
min_size = 1
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants