|
1 | 1 | // Module included in the following assemblies: |
2 | 2 | // |
3 | 3 | // * storage/container_storage_interface/persistent-storage-csi-ovirt.adoc |
| 4 | +// * post_installation_configuration/storage-configuration.adoc |
4 | 5 |
|
5 | 6 | [id="ovirt-csi-driver-storage-class_{context}"] |
6 | | -= oVirt CSI driver storage class |
| 7 | +ifeval::["{context}" == "post-install-storage-configuration"] |
| 8 | += {rh-virtualization-first} object definition |
| 9 | +endif::[] |
| 10 | +ifeval::["{context}" == "persistent-storage-csi-ovirt"] |
| 11 | += {rh-virtualization-first} CSI driver storage class |
| 12 | +endif::[] |
| 13 | + |
7 | 14 |
|
8 | 15 | {product-title} creates a default object of type `StorageClass` named `ovirt-csi-sc` which is used for creating dynamically provisioned persistent volumes. |
9 | 16 |
|
10 | 17 | To create additional storage classes for different configurations, create and save a file with the `StorageClass` object described by the following sample YAML: |
11 | 18 |
|
| 19 | +.ovirt-storageclass.yaml |
12 | 20 | [source,yaml] |
13 | 21 | ---- |
14 | 22 | apiVersion: storage.k8s.io/v1 |
15 | 23 | kind: StorageClass |
16 | 24 | metadata: |
17 | | - name: <storage-class-name> <1> |
| 25 | + name: <storage_class_name> <1> |
18 | 26 | annotations: |
19 | | - storageclass.kubernetes.io/is-default-class: "false" <2> |
| 27 | + storageclass.kubernetes.io/is-default-class: "<boolean>" <2> |
20 | 28 | provisioner: csi.ovirt.org |
| 29 | +allowVolumeExpansion: <boolean> <3> |
| 30 | +reclaimPolicy: Delete <4> |
| 31 | +volumeBindingMode: Immediate <5> |
21 | 32 | parameters: |
22 | | - storageDomainName: <rhv-storage-domain-name> <3> |
23 | | - thinProvisioning: "true" <4> |
24 | | - csi.storage.k8s.io/fstype: ext4 <5> |
| 33 | + storageDomainName: <rhv-storage-domain-name> <6> |
| 34 | + thinProvisioning: "<boolean>" <7> |
| 35 | + csi.storage.k8s.io/fstype: <file_system_type> <8> |
25 | 36 | ---- |
26 | 37 | <1> Name of the storage class. |
27 | 38 | <2> Set to `false` if the storage class is the default storage class in the cluster. If set to `true`, the existing default storage class must be edited and set to `false`. |
28 | | -<3> {rh-virtualization} storage domain name to use. |
29 | | -<4> Disk must be thin provisioned. |
30 | | -<5> File system type to be created. |
| 39 | +<3> `true` enables dynamic volume expansion, `false` prevents it. `true` is recommended. |
| 40 | +<4> Dynamically provisioned persistent volumes of this storage class are created with this reclaim policy. This default policy is `Delete`. |
| 41 | +<5> Indicates how to provision and bind `PersistentVolumeClaims`. When not set, `VolumeBindingImmediate` is used. This field is only applied by servers that enable the `VolumeScheduling` feature. |
| 42 | +<6> The {rh-virtualization} storage domain name to use. |
| 43 | +<7> If `true`, the disk is thin provisioned. If `false`, the disk is preallocated. Thin provisioning is recommended. |
| 44 | +<8> Optional: File system type to be created. Possible values: `ext4` (default) or `xfs`. |
0 commit comments