Closed olibenni closed 2 years ago
@olibenni out of curiosity, what is your use-case to attach an ALB directly to the ASG this way?
Good question, I wanted to add a loadbalancer for the ArgoCD server, exposing the ArgoCD web ui. Open to alternatives.
Gotcha. What you are trying to do will certainly work but its more common to use an Ingress configuration for such purposes. An Ingress controller such as AWS Load Balancer Controller makes it easier to manage Elastic Load Balancers for a Kubernetes cluster from within the cluster. Checkout our example which shows how you can configure a complete Ingress path with a combination of ingress-nginx, LBC, external-dns. You can repurpose this example for serving of the ArgoCD UI.
Thanks for the tip! Will check this out better tomorrow (working on UTC time).
closed in #855
Description
Using aws_autoscaling_attachment to attach alb target group arn with out autoscaling group for the nodes in the eks only works on every other apply. The apply is successful but the attachment is removed on every other apply.
Versions
Reproduction Code [Required]
Expected behavior
Expect new nodes need be be part of our target group The autoscaling group in the eks cluster needs to be aware of the target group so that new nodes are part of it
Actual behavior
When we first apply, the attachment is made and things work fine. But in our subsequent apply, the eks_blueprint notices an attachment that isn't defined in the blueprint so it removes it.