Skip to content

Commit 6479f01

Browse files
authored
Merge pull request #44942 from tamilselvan1102/k8s-doc-web-20240130
Information about default StorageClasses
2 parents d7fc8eb + 5aca46b commit 6479f01

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/en/docs/concepts/storage/dynamic-provisioning.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,10 @@ When a default `StorageClass` exists in a cluster and a user creates a
119119
`DefaultStorageClass` admission controller automatically adds the
120120
`storageClassName` field pointing to the default storage class.
121121

122-
Note that there can be at most one *default* storage class on a cluster, or
123-
a `PersistentVolumeClaim` without `storageClassName` explicitly specified cannot
124-
be created.
122+
Note that if you set the `storageclass.kubernetes.io/is-default-class`
123+
annotation to true on more than one StorageClass in your cluster, and you then
124+
create a `PersistentVolumeClaim` with no `storageClassName` set, Kubernetes
125+
uses the most recently created default StorageClass.
125126

126127
## Topology Awareness
127128

0 commit comments

Comments
 (0)