You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example is hard to do right. Either a PV must exist in every AWS zone where cluster has a node, which is odd, or the StorageClass must use volumeBindingMode: Immediate, which may then break other cases where dynamic provisioning + topology is preferred. Does it make sense to have a dedicated StorageClass just for pre-provisioned PVs?
How to reproduce it (as minimally and precisely as possible)?
Create a cluster with 3 AWS zones.
Follow the example
Sometimes, you get a dynamically provisioned PV instead of the pre-provisioned one.
The text was updated successfully, but these errors were encountered:
/kind bug
What happened?
The example at https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/examples/kubernetes/static-provisioning
uses StorageClass with
volumeBindingMode: WaitForFirstConsumer
. In this mode, a Pod + PVC is scheduled together and are assigned to a random node / zone. Scheduler does not take pre-existing unbound PVs into account here at all. Therefore a new empty PV may be provisioned for the PVC, leaving users confused.What you expected to happen?
The example is hard to do right. Either a PV must exist in every AWS zone where cluster has a node, which is odd, or the StorageClass must use
volumeBindingMode: Immediate
, which may then break other cases where dynamic provisioning + topology is preferred. Does it make sense to have a dedicated StorageClass just for pre-provisioned PVs?How to reproduce it (as minimally and precisely as possible)?
The text was updated successfully, but these errors were encountered: