I'm defining a worker group launch template like so:
{
name = "worker-group-1"
instance_type = var.instance_type
asg_min_size = var.asg_min_size
asg_max_size = var.asg_max_size
asg_desired_capacity = var.asg_desired_size
kubelet_extra_args = "--node-labels=mykey=myvalue --register-with-taints=mykey=myvalue"
}
And I see the extra args are injected to the userData on AWS like so:
--kubelet-extra-args "--node-labels=mykey=myvalue --register-with-taints=mykey=myvalue:NoSchedule"
But yet I'm getting no labels and no taints.
If I drop one of them it will work, but I can't get both of them to work together. Tried wrapping with a single quote, no success.
Shown above.
The worker group should have the label and taint that I set.
If I edit the userData manually on AWS to have single quotes instead of double quotes, everything works as expected.
closing this as #474 is now merged.