1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/virt-example-vm-node-placement-tolerations.adoc
2021-12-06 18:52:12 +00:00

30 lines
837 B
Plaintext

// Module included in the following assemblies:
//
// * virt/virtual_machines/advanced_vm_management/virt-specifying-nodes-for-vms.adoc
[id="virt-example-vm-node-placement-tolerations_{context}"]
= Example: VM node placement with tolerations
In this example, nodes that are reserved for virtual machines are already labeled with the `key=virtualization:NoSchedule` taint. Because this virtual machine has matching `tolerations`, it can schedule onto the tainted nodes.
[NOTE]
====
A virtual machine that tolerates a taint is not required to schedule onto a node with that taint.
====
.Example VM manifest
[source,yaml]
----
metadata:
name: example-vm-tolerations
apiVersion: kubevirt.io/v1
kind: VirtualMachine
spec:
tolerations:
- key: "key"
operator: "Equal"
value: "virtualization"
effect: "NoSchedule"
...
----