diff --git a/content/en/docs/concepts/storage/storage-classes.md b/content/en/docs/concepts/storage/storage-classes.md index e80c5187681ae..d22df0f447d60 100644 --- a/content/en/docs/concepts/storage/storage-classes.md +++ b/content/en/docs/concepts/storage/storage-classes.md @@ -44,22 +44,7 @@ for more details. Here's an example of a StorageClass: -```yaml -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: low-latency - annotations: - storageclass.kubernetes.io/is-default-class: "false" -provisioner: csi-driver.example-vendor.example -reclaimPolicy: Retain # default value is Delete -allowVolumeExpansion: true -mountOptions: - - discard # this might enable UNMAP / TRIM at the block storage layer -volumeBindingMode: WaitForFirstConsumer -parameters: - guaranteedReadWriteLatency: "true" # provider-specific -``` +{{% code file="storage/storageclass-low-latency.yaml" %}} ## Default StorageClass diff --git a/content/en/examples/storage/storageclass-low-latency.yaml b/content/en/examples/storage/storageclass-low-latency.yaml new file mode 100644 index 0000000000000..6a427a6717ba9 --- /dev/null +++ b/content/en/examples/storage/storageclass-low-latency.yaml @@ -0,0 +1,14 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: low-latency + annotations: + storageclass.kubernetes.io/is-default-class: "false" +provisioner: csi-driver.example-vendor.example +reclaimPolicy: Retain # default value is Delete +allowVolumeExpansion: true +mountOptions: + - discard # this might enable UNMAP / TRIM at the block storage layer +volumeBindingMode: WaitForFirstConsumer +parameters: + guaranteedReadWriteLatency: "true" # provider-specific