in ch07s05, affinity and tolerations are incorrectly specified in the following respoctively:
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"
notes:
@bkhoo Thanks , I will check the same and report that to the course development team via an internal ticket.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.