-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[local-volume] New controller to handle node deletion #817
Comments
/area local-volume |
Thinking about it a little more, the scenario where node is recreated with the same name could be handled by kubernetes/community#1484, which can detect that the path/disk no longer exists on the node. So maybe there are actually 3 controllers involved here:
|
1 and 2 are being implemented here in https://github.com/caicloud/kube-storage-monitor |
Migrating to new repo: kubernetes-sigs/sig-storage-local-static-provisioner#10 |
@msau42: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Extension to kubernetes/community#1484
In cloud environments, nodes can be deleted and recreated fairly often. When nodes are deleted, the local disks are also deleted along with them, however local PVs remain and pods will get stuck scheduling because they are bound to a node that no longer exists.
For workloads that tolerate data loss and can recover with a brand new disk, the user can delete and recreate the PVC, which will cause the new PVC to be bound to a new disk. If using StatefulSets, the StatefulSet controller will automatically recreate a PVC if it doesn't exist.
The process of detecting node deletion and deleting the PVC could be automated by a controller. There's a few things to consider:
As for implementation ideas, I think metacontroller would be a cool framework to try out for this.
The text was updated successfully, but these errors were encountered: