Enforce ReadWriteOnce PVC access mode during scheduling
#103.305 aberto em 29 de jun. de 2021
Métricas do repositório
- Stars
- (122.268 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
What would you like to be added: The ReadWriteOnce PVC access mode guarantees only the pods on a single node can access the provided PVC as a volume. This is enforced during volume attachment (in kube-controller-manager), and should be additionally enforced during scheduling.
Why is this needed: Because without it the scheduler will assign pods to nodes and they will fail to start (due to failed volume attachment).
Expected behavior:
When pod 1 is scheduled, if it uses a ReadWriteOnce PVC that's in use by a pod 2 running on node 1, then pod 1 can only be scheduled to node 1.
/sig scheduling /sig storage /cc @alculquicondor /cc @jsafrane