-
Bug
-
Resolution: Done
-
Major
-
DO316 - OCP4.14-en-1-20240328
-
None
-
False
-
-
False
-
7
-
ROLE
-
-
-
en-US (English)
Please fill in the following information:
URL: | https://rol.redhat.com/rol/app/courses/do316-4.14/pages/ch07s05 |
Reporter RHNID: | chetan-rhls |
Section Title: | h2. Performing Virtual Machine Live Migrations |
Issue description:
affinity and tolerations are incorrectly specified in the following respectively:
- spec.affinity
- spec.toleration
affinity and tolerations should be configured in: spec.template.spec, like:
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: example-vm-pod-affinity
spec:
template:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: example.io/example-key
operator: In
values: - example-value-1
- example-value-2
and:
metadata:
name: example-vm-tolerations
apiVersion: kubevirt.io/v1
kind: VirtualMachine
spec:
template:
spec:
tolerations:
- key: "key"
operator: "Equal"
value: "virtualization"
effect: "NoSchedule"
Steps to reproduce:
Workaround:
Expected result: