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

fix: Ensure vpc-cni is installed before adding nodes to the cluster (Manag… #3115

Closed
wants to merge 1 commit into from

Conversation

ChauAnhTuan
Copy link

@ChauAnhTuan ChauAnhTuan commented Aug 7, 2024

Ensure vpc-cni is installed before adding nodes to the cluster (Managed nodegroup)

Description

The aws_eks_node_group resource must wait for vpc-cni or add-on to be added before adding the node group to the cluster.

Add depend_on to aws_eks_node_group resource (modules/eks-managed-node-group) with variable module_depends_on. On main module, set aws_eks_addon.before_compute as depend

Motivation and Context

Resolves Add depends_on for the 'resource "aws_eks_addon" "before_compute"' #3114

Breaking Changes

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@ChauAnhTuan ChauAnhTuan changed the title Ensure vpc-cni is installed before adding nodes to the cluster (Manag… fix: Ensure vpc-cni is installed before adding nodes to the cluster (Manag… Aug 7, 2024
@ChauAnhTuan
Copy link
Author

image

@ChauAnhTuan
Copy link
Author

ChauAnhTuan commented Aug 7, 2024

Usedata of the EKS node group. I have tested it, and it works well.

image

  kubelet:
    config:
      maxPods: 110
      clusterDNS:
      - 172.20.0.10

@bryantbiggs
Copy link
Member

we already have this supported today

terraform-aws-eks/main.tf

Lines 527 to 531 in 5fe865e

depends_on = [
module.fargate_profile,
module.eks_managed_node_group,
module.self_managed_node_group,
]

@bryantbiggs bryantbiggs closed this Aug 7, 2024
@ChauAnhTuan
Copy link
Author

ChauAnhTuan commented Aug 8, 2024

we already have this supported today

terraform-aws-eks/main.tf

Lines 527 to 531 in 5fe865e

depends_on = [
module.fargate_profile,
module.eks_managed_node_group,
module.self_managed_node_group,
]

Above "depdens_on" ensures the EKS node group is created before the add-ons. But with this resource, there is no "depends_on" that ensures no EKS node group has been created

resource "aws_eks_addon" "before_compute" {

Copy link

github-actions bot commented Sep 7, 2024

I'm going to lock this pull request 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 related to this change, 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 Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add depends_on for the 'resource "aws_eks_addon" "before_compute"'
2 participants