mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
28 lines
846 B
Plaintext
28 lines
846 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/virtual_machines/virtual_disks/virt-storage-defaults-for-datavolumes.adoc
|
|
|
|
[id="virt-example-kubevirtstorageclassdefaults_{context}"]
|
|
= Example of multiple storage class defaults
|
|
|
|
The following YAML file is an example of a `kubevirt-storage-class-defaults` config map that has storage settings configured for two storage classes, `migration` and `block`.
|
|
|
|
Ensure that all settings are supported by your underlying storage before you update the config map.
|
|
|
|
[source,yaml]
|
|
----
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: kubevirt-storage-class-defaults
|
|
namespace: openshift-cnv
|
|
...
|
|
data:
|
|
accessMode: ReadWriteOnce
|
|
volumeMode: Filesystem
|
|
nfs-sc.accessMode: ReadWriteMany
|
|
nfs-sc.volumeMode: Filesystem
|
|
block-sc.accessMode: ReadWriteMany
|
|
block-sc.volumeMode: Block
|
|
----
|