-
Notifications
You must be signed in to change notification settings - Fork 773
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] support cloneset update policy not to delete pvc during recreate update #1876
Comments
/cc @furykerry |
is an advanced statefulset a better fit here ? |
it may not be a stateful application and without any index orders. For example the pvc only stores cache data which means the pod and pvc can be migrated to somewhere else, but it will be better if we can keep the cache during update. |
advanced statefulset support unorderedUpdate, so the index order does not affect much. |
not only update, we may want to delete any specific pods of the workload and don't want to use the ordinals skip, which is too complicated to manage through lifecycle. in fact, we don't care about the ordinal at all, on the contrary, it will bring us a lot of trouble in management. |
since clonset supports pvc template and we do support keep and reuse the pvc during pod recreation, I think it's reasonable to have a policy for update? |
I'm evaluating the feasibility and cost of using kruise in some scenarios :) |
i am not against to implement keep the pvc during recreate, actually we can extend the behavior of disablePVCreuse to enable keeping the pvc. However the compatibility must be considered, maybe a feature gate is required to change the default behavior of disablePVCreuse |
yea, that makes sense. since the adding a feature-gate which is valid for all CloneSets is another option. maybe the former one is more flexible? |
disablePVCreuse in update policy sounds good to me. but we can discuss it in the community call, since existing disablePVCreuse in scale policy already sounds a misnomer to me (it can also control the eviction case). |
What would you like to be added:
support cloneset update policy not to delete pvc during recreate update
Why is this needed:
sometimes we need to keep existing pvc during update
The text was updated successfully, but these errors were encountered: