Skip to content

Update existing labels and taints of existing worker groups #1085

@PeteMac88

Description

@PeteMac88

I have issues

Hey there,
i have an issue to update existing nodes with node labels and taints. The labels and taints are added to a node when add new worker group to our cluster but not if I am editing the kubelet_extra_args values of existing worker groups. Is this not possible or is this a bug?

Here is the snippet of our terraform code:

module "eks" {
  source          = "terraform-aws-modules/eks/aws"
  cluster_name    = var.cluster_name
  subnets         = module.vpc.private_subnets
  cluster_version = var.cluster_version
  vpc_id          = module.vpc.vpc_id
  worker_groups = [
    for wg in var.worker_groups : {
      name                          = wg.name
      instance_type                 = wg.instance_type
      asg_desired_capacity          = wg.desired_capacity
      asg_min_size                  = wg.min_capacity
      asg_max_size                  = wg.max_capacity
      additional_security_group_ids = [aws_security_group.security_groups[wg.security_group_prefix].id]
      kubelet_extra_args            = wg.kubelet_extra_args
      tags = [
        {
          key                 = "k8s.io/cluster-autoscaler/enabled"
          propagate_at_launch = "false"
          value               = "true"
        },
        {
          key                 = "k8s.io/cluster-autoscaler/${var.cluster_name}"
          propagate_at_launch = "false"
          value               = "true"
        }
      ]
    }
  ]
  write_kubeconfig = var.eks_write_kubeconfig
  map_users        = var.map_users
  enable_irsa      = true
}

Help appreciated. Best regards

Peter

I'm submitting a...

  • bug report
  • feature request
  • support request - read the FAQ first!
  • kudos, thank you, warm fuzzy

What is the current behavior?

If this is a bug, how to reproduce? Please include a code sample if relevant.

What's the expected behavior?

Are you able to fix this problem and submit a PR? Link here if you have already.

Environment details

  • Affected module version: latest
  • OS:
  • Terraform version: v0.13.4

Any other relevant info

We are using terraform cloud to keep our cluster state in sync and at best i want to changes to variable values directly applied to our cluster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions