Skip to content

Commit

Permalink
Switch StorageClass example to code shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
sftim committed Aug 15, 2023
1 parent fbbf793 commit 1805ae1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
17 changes: 1 addition & 16 deletions content/en/docs/concepts/storage/storage-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
14 changes: 14 additions & 0 deletions content/en/examples/storage/storageclass-low-latency.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1805ae1

Please sign in to comment.