-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Declaring more than one default StorageClass #49331
Comments
This issue is currently awaiting triage. SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the The 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. |
/language en |
/sig storage |
master_node $ kubectl describe pvc test-pvc
Name: test-pvc
Namespace: default
StorageClass: default-class-two
Status: Pending
Volume:
Labels: <none>
Annotations: <none>
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Used By: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal WaitForFirstConsumer 4s (x2 over 15s) persistentvolume-controller waiting for first consumer to be created before binding Based on the output, the |
I believe we should change the current documentation in the Changing the default StorageClass to: |
I would to like to work on this issue. |
#48200 was created to fix this. |
Hi!
There is discrepancies in the documentation for behavior of creating a PersistentVolumeClaim when declaring more than one default StorageClass :
in
https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/#changing-the-default-storageclass
"Please note that at most one StorageClass can be marked as default. If two or more of them are marked as default, a PersistentVolumeClaim without storageClassName explicitly specified cannot be created."
and
https://kubernetes.io/docs/concepts/storage/storage-classes/#default-storageclass
"If you set the storageclass.kubernetes.io/is-default-class annotation to true on more than one StorageClass in your cluster, and you then create a PersistentVolumeClaim with no storageClassName set, Kubernetes uses the most recently created default StorageClass."
Thank you.
The text was updated successfully, but these errors were encountered: