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

Need a mechanism to evict the AppliedManifestWorks from the managed cluster #123

Closed
skeeey opened this issue Jan 17, 2023 · 2 comments
Closed
Assignees

Comments

@skeeey
Copy link
Member

skeeey commented Jan 17, 2023

If the ManifestWork of one AppliedManifestWork is not found from the hub, the work agent will evict this AppliedManifestWork from the managed cluster after a grace period (the period has a default value, e.g. 10 mins, and it can be set by work agent argument)

After the AppliedManifestWork is evicted from the managed cluster, its owned resource will also be evicted from the managed cluster with kubernetes garbage collection. If one unfound ManifestWork is recreated after the grace period, the AppliedManifestWork of this ManifestWork will also be created again, this means, the resource for this ManifestWork may be deleted firstly, and then created again after a period.

The eviction will take place in the following scenarios:

  1. The AppliedManifestWork hub hash is unchanged and its agent ID also is unchanged (e.g. the klusterlet is reconnected to the hub)
  2. The AppliedManifestWork hub hash unchanged but its agent ID changed (e.g. the klusterlet is rejoined)
  3. The AppliedManifestWork hub hash changed but its agent ID unchanged (e.g. the hub of one klusterlet is switched)
@skeeey
Copy link
Member Author

skeeey commented Jan 17, 2023

/assign @skeeey

@skeeey
Copy link
Member Author

skeeey commented Mar 30, 2023

code has merged, closing

@skeeey skeeey closed this as completed Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant