-
Notifications
You must be signed in to change notification settings - Fork 1.8k
BZ1980340: [DOC-OCPRHV] Add resize to ovirt CSI driver #34475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,44 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * storage/container_storage_interface/persistent-storage-csi-ovirt.adoc | ||
// * post_installation_configuration/storage-configuration.adoc | ||
|
||
[id="ovirt-csi-driver-storage-class_{context}"] | ||
= oVirt CSI driver storage class | ||
ifeval::["{context}" == "post-install-storage-configuration"] | ||
= {rh-virtualization-first} object definition | ||
endif::[] | ||
ifeval::["{context}" == "persistent-storage-csi-ovirt"] | ||
= {rh-virtualization-first} CSI driver storage class | ||
endif::[] | ||
|
||
|
||
{product-title} creates a default object of type `StorageClass` named `ovirt-csi-sc` which is used for creating dynamically provisioned persistent volumes. | ||
|
||
To create additional storage classes for different configurations, create and save a file with the `StorageClass` object described by the following sample YAML: | ||
|
||
.ovirt-storageclass.yaml | ||
[source,yaml] | ||
---- | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: <storage-class-name> <1> | ||
name: <storage_class_name> <1> | ||
annotations: | ||
storageclass.kubernetes.io/is-default-class: "false" <2> | ||
storageclass.kubernetes.io/is-default-class: "<boolean>" <2> | ||
provisioner: csi.ovirt.org | ||
allowVolumeExpansion: <boolean> <3> | ||
reclaimPolicy: Delete <4> | ||
volumeBindingMode: Immediate <5> | ||
parameters: | ||
storageDomainName: <rhv-storage-domain-name> <3> | ||
thinProvisioning: "true" <4> | ||
csi.storage.k8s.io/fstype: ext4 <5> | ||
storageDomainName: <rhv-storage-domain-name> <6> | ||
thinProvisioning: "<boolean>" <7> | ||
csi.storage.k8s.io/fstype: <file_system_type> <8> | ||
---- | ||
<1> Name of the storage class. | ||
<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`. | ||
<3> {rh-virtualization} storage domain name to use. | ||
<4> Disk must be thin provisioned. | ||
<5> File system type to be created. | ||
<3> `true` enables dynamic volume expansion, `false` prevents it. `true` is recommended. | ||
<4> Dynamically provisioned persistent volumes of this storage class are created with this reclaim policy. This default policy is `Delete`. | ||
<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. | ||
<6> The {rh-virtualization} storage domain name to use. | ||
<7> If `true`, the disk is thin provisioned. If `false`, the disk is preallocated. Thin provisioning is recommended. | ||
<8> Optional: File system type to be created. Possible values: `ext4` (default) or `xfs`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.