Skip to content

Commit 1349519

Browse files
author
tamilselvan1102
committed
Information about default StorageClasses
1 parent 634b1b2 commit 1349519

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,13 @@ 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
123+
[`storageclass.kubernetes.io/is-default-class`](/docs/reference/labels-annotations-taints/#ingressclass-kubernetes-io-is-default-class)
124+
annotation to true on more than one StorageClass in your cluster, and you then
125+
create a `PersistentVolumeClaim` with no `storageClassName` set, Kubernetes
126+
uses the most recently created default StorageClass.
127+
128+
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.
125129

126130
## Topology Awareness
127131

0 commit comments

Comments
 (0)