-
Notifications
You must be signed in to change notification settings - Fork 335
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
Deletion of PVCs on statefulsetscale-up due to low intervals #405
Comments
Update: |
/cc @msau42 |
The deletion logic should only be triggered when the Node doesn't exist. Can you clarify in the scale up case, when does the Node object get created? It is possible that there could also be a race condition where the controller does not see a new Node yet when it's processing a PV. |
One thing that may help is to make sure we only process PVCs that are Bound. cc @mattcary |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
what is we update |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Issue with node-cleanup-controller
Automatic deletion of PVC (PersistentVolumeClaim) /PV (PersistentVolume) on scale-up of statefulset pods.
Each time a statefulset pod is evicted, a PVC is required to be deleted by setting a low discovery interval and deletion delay time. However, the issue arises when the system is scaled up. During a statefulset pod scale-up, the PVC/PV are first created and due to the short discovery interval and deletion delay time, they are automatically deleted.
Expected Behavior:
When a statefulset pod scaling-up operation occurs, there should be no deletion of PVC/PV.
Steps to Reproduce:
To reproduce the issue, please follow the steps below:
Set a discovery interval to 5 seconds and deletion delay to 1 second.
Deploy a statefulset with PVC.
Attempt to scale it up.
After the scale-up, you will notice that the newly created PVC/PV are deleted automatically due to low interval times.
Anything else we need to know?:
Environment:
kubectl version
): 1.23uname -a
): 5.10.186-179.751.amzn2.x86_64The text was updated successfully, but these errors were encountered: