-
Notifications
You must be signed in to change notification settings - Fork 808
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
Feature Request: Automatically upgrade too small volumes to the minimum size #2162
Comments
Hello @jpeimer, thank you for your issue. Indeed the minimum size for You can observe a similar error with the following AWS EC2 CLI command:
Please increase the size of your volume to |
/close As @AndrewSirenko stated above, this is an EBS limitation, and thus not controllable by the EBS CSI Driver. Volumes of type Please reach out to AWS Support (or if applicable, your assigned account manager/service architect/etc) if you wish to request a change to the minimum size of io2 volumes. I'm going to close this issue as there is nothing that can be done in the driver, but please re-open it or open a new issue if you need further assistance. |
@ConnorJC3: 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-sigs/prow repository. |
Thank you for your answer @AndrewSirenko and @ConnorJC3 I understand it's a documented behavior, however, according to the Kubernetes documentation, the storage is free to return a larger volume to the user: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#binding So currently, if the users have some automation flows that request a smaller size - they can't use this storage driver. It looks reasonable to adjust the behavior to the kubernetes expectations. What do you think? /reopen |
@jpeimer: Reopened 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-sigs/prow repository. |
That section of the Kubernetes docs refers to the KCM and does not affect CSI drivers. However, reviewing the CSI spec (which is the binding contract between COs like Kubernetes and CSI drivers like the EBS CSI Driver), it does appear that over-provisioning a volume is allowed as long as I'll leave this open as a feature request for automatically increasing the size of too small volumes - we will need to evaluate if this is suitable, as it may result in users beings surprised and potentially paying more than they expect for volumes. For the moment, I would suggest increasing your volume size to the minimum EBS size as a workaround. /retitle Feature Request: Automatically upgrade too small volumes to the minimum size |
/kind bug
What happened?
Trying to create a PVC with a requested size smaller than 4Gi, but it stays Pending
What you expected to happen?
Volume provisioned anyway, with the minimum possible size (4Gi in this case)
How to reproduce it (as minimally and precisely as possible)?
Create a PVC and a first consumer pod
Anything else we need to know?:
Storage class:
Environment
kubectl version
):The text was updated successfully, but these errors were encountered: