hotfix(eks public) Correct LB system #3110
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After jenkins-infra/helpdesk#3053, the EKS managed SG was updated with the tag
kubernetes.io/cluster/<cluster name>
which caused mayhem with the Loadbalancer (no more backends...) because subnet discoverability was expecting only 1 tagged SG while they were 2 (the EKS managed SG and the Terraform EKS module managed Node SG (node_security_group_id
).Hard to diagnose because eks-public used the Legacy Cloud Load Balancer Controller (no logs) despite the new Controller being installed (logs but no mentions of the loadbalancer because delegated to the Legacy Controller).
Error message could be found in the service description:
Once switched to the AWS LB Controller, same error with more details in the controller logs:
=> Automatic discovery of the subnets allows selecting a network interface (
eni-xxxx
) and then select security groups transitively, with a final selection per tags on security groups.This is how we diagnosed the tag added by EKS itself outside our Terraform management (issue jenkins-infra/helpdesk#3053 updated for next kubernetes updates).
Finally, the IRSA ARN in the AWS LB Controller was changed by jenkins-infra/aws#276 but not reported to the helm chart values.
This PR fixes the LB management in eks-public with the following changes: