kubernetes/kubernetes

Enforce ReadWriteOnce PVC access mode during scheduling

オープン

#103,305 opened on 2021/06/29

 (50 件のコメント) (6 件のリアクション) (1 人の担当者)Go (43,066 件のフォーク)batch import
help wantedkind/featurelifecycle/staleneeds-triagesig/schedulingsig/storage

Repository metrics

Stars
 (122,268 個のスター)
PR merge metrics
 (平均マージ 28d 17h) (30d で 343 merged PRs)

説明

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

コントリビューターガイド