Skip to content

Commit 18bab2d

Browse files
author
Bob Furu
authored
Merge pull request #20625 from bobfuru/ISSUE-20482
Add storageclassDevices to Pod spec
2 parents ca31037 + 9511275 commit 18bab2d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

modules/persistent-storage-local-create-cr.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ on all available nodes.
6161
local volumes.
6262
<4> The file system that is created when the local volume is mounted for the
6363
first time.
64-
<5> The path to where the local volumes have been attached to the node.
64+
<5> The path containing a list of local storage devices to choose from.
6565
+
6666
.Example: Block
6767
[source,yaml]
@@ -94,7 +94,7 @@ defined, then the Local Storage Operator will attempt to find matching disks
9494
on all available nodes.
9595
<3> The volume mode, either `Filesystem` or `Block`, defining the type of the
9696
local volumes.
97-
<4> The path to where the local volumes have been attached to the node.
97+
<4> The path containing a list of local storage devices to choose from.
9898

9999
. Create the local volume resource in your {product-title} cluster, specifying
100100
the file you just created:

modules/persistent-storage-local-tolerations.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,17 @@ To configure local volumes for scheduling on tainted nodes:
4040
- key: localstorage <1>
4141
operator: Equal <2>
4242
value: "localstorage" <3>
43+
storageClassDevices:
44+
- storageClassName: "localblock-sc"
45+
volumeMode: Block <4>
46+
devicePaths: <5>
47+
- /dev/xvdg
48+
4349
----
4450
<1> Specify the key that you added to the node.
4551
<2> Specify the `Equal` operator to require the `key`/`value` parameters to match. If operator is 'Exists`, the system checks that the key exists and ignores the value. If operator is `Equal`, then the key and value must match.
4652
<3> Specify the value `local` of the tainted node.
53+
<4> The volume mode, either `Filesystem` or `Block`, defining the type of the local volumes.
54+
<5> The path containing a list of local storage devices to choose from.
4755

4856
The defined tolerations will be passed to the resulting DaemonSets, allowing the diskmaker and provisioner Pods to be created for nodes that contain the specified taints.

0 commit comments

Comments
 (0)