What happens when a node has a taint with effect=NoSchedule and a pod does not have a matching toleration?
Think about what NoSchedule means for pod placement.
A NoSchedule taint prevents pods without matching tolerations from being scheduled on the node. Pods must tolerate the taint to be placed there.
What is the output of kubectl describe node node1 if the node has a taint key=example, value=reserved, effect=NoSchedule?
kubectl describe node node1Check the format of taints in the node description.
The taint is shown as key=value:effect. Here, example=reserved:NoSchedule is the correct format.
Which YAML snippet correctly adds a toleration for a NoExecute taint with key special and value true?
Remember that NoExecute tolerations can specify tolerationSeconds to limit eviction time.
Option D correctly specifies key, operator, value, effect, and tolerationSeconds for a NoExecute taint toleration.
A pod has a toleration for a taint key=zone, value=west, effect=NoSchedule but is still not scheduled on the node with that taint. What could be the reason?
Check if the toleration's value matches the taint's value exactly.
Tolerations with operator 'Equal' require exact value match. If the values differ, the toleration does not match the taint, so the pod won't schedule.
You want to prevent new pods from scheduling on a node temporarily for maintenance but allow existing pods to continue running. Which taint effect should you use?
Consider the difference between preventing scheduling and evicting pods.
NoSchedule prevents new pods from scheduling but does not evict existing pods. NoExecute evicts existing pods. PreferNoSchedule is a soft preference. NoStart is not a valid effect.