Skip to content

Commit f9d9863

Browse files
Merge pull request #36654 from xenolinux/bug1889217
BZ1889217: Run PVs on master nodes
2 parents 0eaafc3 + 83bb233 commit f9d9863

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/persistent-storage-local-tolerations.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,14 @@ To configure local volumes for scheduling on tainted nodes:
5252
<4> The volume mode, either `Filesystem` or `Block`, defining the type of the local volumes.
5353
<5> The path containing a list of local storage devices to choose from.
5454

55+
. Optional: To create local persistent volumes on only tainted nodes, modify the YAML file and add the `LocalVolume` spec, as shown in the following example:
56+
+
57+
[source,yaml]
58+
----
59+
spec:
60+
tolerations:
61+
- key: node-role.kubernetes.io/master
62+
operator: Exists
63+
----
64+
5565
The defined tolerations will be passed to the resulting daemon sets, allowing the diskmaker and provisioner pods to be created for nodes that contain the specified taints.

0 commit comments

Comments
 (0)