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

Remove Service kind of ResourceExport when no available Pod Endpoints #4055

Closed
luolanzone opened this issue Jul 26, 2022 · 0 comments · Fixed by #4056
Closed

Remove Service kind of ResourceExport when no available Pod Endpoints #4055

luolanzone opened this issue Jul 26, 2022 · 0 comments · Fixed by #4056
Labels
area/multi-cluster Issues or PRs related to multi cluster. kind/bug Categorizes issue or PR as related to a bug.

Comments

@luolanzone
Copy link
Contributor

Describe the bug
Since 1.7, Antrea multi-cluster Service's Endpoints have been changed to exported Service's ClusterIP, ClusterIP is relatively stable, usually it's no need to update Service kind of ResourceExport. But there is a corner case when there is no Pod Endpoints for exported Service, mc-controller should remove the Service kind of ResourceExport from leader cluster, so it won't be imported by other clusters.

To Reproduce

  1. Create a Service without a real Pod Endpoint
  2. Export the Service

Expected

  • When Service is exported but no Pod Endpoint, mc-controller shouldn't create Service kind of ResourceExport.
  • When the exported Service has Pod Endpoint before but it no longer has any Endpoints after a while, mc-controller should
    delete existing Service kind of ResourceExport.

Actual behavior
Service Export controller doesn't watch Endpoint events now, so it doesn't take any action when there is Endpoint change.

Versions:
v1.7

@luolanzone luolanzone added kind/bug Categorizes issue or PR as related to a bug. area/multi-cluster Issues or PRs related to multi cluster. labels Jul 26, 2022
@luolanzone luolanzone changed the title Remove Service's ClusterIP from ResourceExport when no available Pod Endpoints Remove Service's ClusterIP from ResourceImport when no available Pod Endpoints Jul 26, 2022
@luolanzone luolanzone changed the title Remove Service's ClusterIP from ResourceImport when no available Pod Endpoints Remove Service kind of ResourceExport when no available Pod Endpoints Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/multi-cluster Issues or PRs related to multi cluster. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant