Closed prb112 closed 3 months ago
@prb112 The changes make sense but did you try moving bootstrap IP to the end of the list to see if Terraform does not shuffle and remove the last resource only? From:
api_servers = var.bootstrap_count == 0 ? var.master_ips : concat([var.bootstrap_ip], var.master_ips)
To:
api_servers = var.bootstrap_count == 0 ? var.master_ips : concat(var.master_ips,[var.bootstrap_ip])
This is a simple fix to keep the code as reusable as it is now. Please test it out for me. Thanks.
Hi Yussuf,
I considered the api_servers = var.bootstrap_count == 0 ? var.master_ips : concat(var.master_ips,[var.bootstrap_ip])
The reason I eventually chose the approach is this situation:
The count will not be stable.
Thoughts?
Thanks, Paul
Hey Yussuf, Thoughts on the above? thanks, Paul
Did you try my suggestion and see if there is a drift?
Did you try my suggestion and see if there is a drift?
Hey Yussuf, since Bootstrap is expected to be removed from the LB immediately post install. This shouldn't be a problem. I've reverted to my original fix.
Thanks, Paul
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: prb112, yussufsh
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Load Balancer Members graph is unstable. You can see the IPs change for all the members when the bootstrap count is moved to zero. There is a bug in the load_balancer.tf that makes it unstable. This is the fix.