Closed ksimm1 closed 1 year ago
To be clear: I'm not sure MetalLB guarantees automatic assignment to be the same on everything. Afaik that MIGHT happen and is likely to happen but is not a formal guarantee.
That being said: Yes, there is a code related issue/mistake around this that improves this behavior on our side. Just not it isn't some sort of guarantee
I've looked into it, and to be honest: I don't see why it shouldn't do so already tbh.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.
This is no longer an issue. Tested with home-assistant and homepage apps. Codeserver addon shares IP with main service as expected
YES, so new common fixed it, thanks for verifying @ksimm1
This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists
App Name
code-server addon
SCALE Version
22.02.3
App Version
N/A
Application Events
Application Logs
Application Configuration
The workaround is to specify the LoadBalancer IP address under code-server addon to be the same as the one assigned to the other app's services.
Describe the bug
By default, all loadbalancer services include an annotation
metallb.universe.tf/allow-shared-ip
that ensures services under the same appname share the same IP address assigned by metallb.Annotation code is here: https://github.com/truecharts/library-charts/blob/0783be11dc3720f55e5134bdbffad0b415875655/charts/common/templates/class/_service.tpl#L32
Codeserver code is here:
When code-server addon is enabled, it is not picking up this annotation, and the code-server addon gets assigned a different IP address by metallb
To Reproduce
The workaround is to specify the LoadBalancer IP address under code-server addon to be the same as the one assigned to the other app's services.
Expected Behavior
Codeserver addon should share the same IP address as the IPs assigned in the other apps services
Screenshots
N/A
Additional Context
N/A
I've read and agree with the following