Skip to content

Commit 8463423

Browse files
authored
Merge pull request #39717 from dipesh-rawat/add-storage-class-annotation
Add volume.beta.kubernetes.io/storage-class annotation
2 parents ce650bf + 2714d34 commit 8463423

File tree

1 file changed

+11
-0
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+11
-0
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,17 @@ Used on: PersistentVolumeClaim
431431

432432
This annotation has been deprecated.
433433

434+
### volume.beta.kubernetes.io/storage-class (deprecated)
435+
436+
Example: `volume.beta.kubernetes.io/storage-class: "example-class"`
437+
438+
Used on: PersistentVolume, PersistentVolumeClaim
439+
440+
This annotation can be used for PersistentVolume(PV) or PersistentVolumeClaim(PVC) to specify the name of [StorageClass](/docs/concepts/storage/storage-classes/). When both `storageClassName` attribute and `volume.beta.kubernetes.io/storage-class` annotation are specified, the annotation `volume.beta.kubernetes.io/storage-class` takes precedence over the `storageClassName` attribute.
441+
442+
This annotation has been deprecated. Instead, set the [`storageClassName` field](/docs/concepts/storage/persistent-volumes/#class)
443+
for the PersistentVolumeClaim or PersistentVolume.
444+
434445
### volume.beta.kubernetes.io/mount-options (deprecated) {#mount-options}
435446

436447
Example : `volume.beta.kubernetes.io/mount-options: "ro,soft"`

0 commit comments

Comments
 (0)