-
Notifications
You must be signed in to change notification settings - Fork 407
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
[feature request]improve discardcloudservice filter in yurthub component #1924
Comments
It seems we first need to add a new annotation openyurt/pkg/yurthub/filter/constant.go Line 48 in 81d21b7
and then we need to modify the following code, discard LoadBalancer service which has svc.openyurt.io/discard=true , instead of which doesn't have openyurt.io/skip-discard=true .openyurt/pkg/yurthub/filter/discardcloudservice/filter.go Lines 81 to 86 in 81d21b7
I have raised a pr to implement the logic described above to fix this issue. |
…rtio#1924) Signed-off-by: Chenzhao Huang <[email protected]>
…rtio#1924) Signed-off-by: Chenzhao Huang <[email protected]>
…rtio#1924) Signed-off-by: Chenzhao Huang <[email protected]>
@huangchenzhao yes, you're right. by the way, unit tests also should be tuned. |
…rtio#1924) Signed-off-by: Chenzhao Huang <[email protected]>
…#1926) Signed-off-by: Chenzhao Huang <[email protected]>
…rtio#1924) (openyurtio#1926) Signed-off-by: Chenzhao Huang <[email protected]>
What would you like to be added:
Because clients on edges nodes can not connect cloud applications through pod ip, so LoadBalancer service for cloud application is discarded in yurthub component in order to make kube-proxy unaware of LoadBalancer service on edge nodes. and only LoadBalancer service with annotation
openyurt.io/skip-discard=true
will be skipped.the following are detail codes:
openyurt/pkg/yurthub/filter/discardcloudservice/filter.go
Lines 81 to 86 in 81d21b7
but in the proposal: https://github.com/openyurtio/openyurt/blob/master/docs/proposals/20231121-high-availability-of-edge-services.md, LoadBalancer service across NodePools will be supported, this means that LoadBalancer service should be aware of on edge nodes.
so we will improve discardcloudservice filter in yurthub component, and only discard LoadBalancer service which has annotation
svc.openyurt.io/discard=true
, this means that LoadBalancer service will not be discarded by default.others
/kind feature
The text was updated successfully, but these errors were encountered: