Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle existing load balancer class #41

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

iterion
Copy link
Contributor

@iterion iterion commented Oct 11, 2023

We frequently see an error like the following:

"error": "cannot upsert service \"stunner/gateway\": Service \"gateway\" is invalid: spec.loadBalancerClass: Invalid value: \"null\": may not change once set"

We're using the AWS load balancer controller, which sets that field when the service is created and handles the creation of a load balancer for us.

I traced this down to how the service gets recreated each time. We have a cache of the current state of the service in the global store, so we can use this to get the current values. We need to then be careful about adding ports, but other than that the change is pretty straightforward.

@rg0now rg0now self-assigned this Oct 11, 2023
@rg0now rg0now added status: duplicate type: bug Something isn't working labels Oct 11, 2023
@rg0now
Copy link
Member

rg0now commented Oct 11, 2023

Duplicate of l7mp/stunner#104

@rg0now rg0now marked this as a duplicate of l7mp/stunner#104 Oct 11, 2023
@iterion
Copy link
Contributor Author

iterion commented Oct 11, 2023

Sorry I missed the earlier bug report, thanks for referencing it.

I wanted to update that we built and tested this in dev and rolled it out to our production clusters. And, it's been working reliably without the error log. Happy to try to figure out a test for this if you think it'd be worthwhile.

@rg0now rg0now merged commit 81c2eaf into l7mp:main Oct 11, 2023
2 checks passed
@rg0now
Copy link
Member

rg0now commented Oct 11, 2023

Thanks a lot for the PR, we truly appreciate it that you made the effort! Don't worry about the duplicate: unfortunately some issues get reported to the STUNner repo and some issues here, and it's somewhat difficult to keep track of what's going on.

rg0now added a commit that referenced this pull request Jan 3, 2024
fix: Open health-check service-port for LB Services only

# Conflicts:
#	internal/renderer/service_util.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants