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

Support for "early" cluster_addons (vpc-cni with ENABLE_PREFIX_DELEGATION) #2467

Closed
gw0 opened this issue Feb 12, 2023 · 2 comments · Fixed by #2478
Closed

Support for "early" cluster_addons (vpc-cni with ENABLE_PREFIX_DELEGATION) #2467

gw0 opened this issue Feb 12, 2023 · 2 comments · Fixed by #2478
Assignees

Comments

@gw0
Copy link

gw0 commented Feb 12, 2023

Is your request related to a new offering from AWS?

Yes

Is your request related to a problem? Please describe.

As described on EKS Cluster w/ Prefix Delegation (#2155), the vpc-cni is a special cluster addon that needs to be configured before any EC2 instances (node groups) are created. If you naively apply it like this but without vpc_cni_irsa, initial nodes have a different configuration than later ones.

The recommended workaround is to configure the aws_eks_addon vpc-cni separately without the the depends_on directive.

Describe the solution you'd like.

To generalize it seems there are "early" and "normal" cluster_addons, some need to be applied before node groups are created other ones after. It would therefore be a trivial change to improve the Terraform module UX by changing the following depends_on directive:

By introducing local.early_cluster_addons = ["vpc-cni"] and using:

  depends_on = contains(local.early_cluster_addons, each.key) ? [] : [
    module.fargate_profile,
    module.eks_managed_node_group,
    module.self_managed_node_group,
  ]

Or by introducing an apply_early option for cluster_addons and using:

  depends_on = each.value.apply_early ? [] : [
    module.fargate_profile,
    module.eks_managed_node_group,
    module.self_managed_node_group,
  ]
@antonbabenko
Copy link
Member

This issue has been resolved in version 19.9.0 🎉

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants