Complete the code to add a taint to a node that prevents pods without tolerations from scheduling.
kubectl taint nodes node1 key=[1]:NoScheduleThe taint key-value pair is specified as key=value. Here, value is the correct value for the taint.
Complete the pod spec to tolerate a taint with key 'key' and effect 'NoSchedule'.
tolerations: - key: "key" operator: "Equal" value: "[1]" effect: "NoSchedule"
The toleration value must match the taint value. Here, the taint value is 'value', so the toleration value is also 'value'.
Fix the error in the toleration that causes the pod to not tolerate the taint.
tolerations: - key: "key" operator: "[1]" value: "value" effect: "NoSchedule"
The operator must be 'Equal' to match the taint's key and value exactly. 'Exists' ignores the value, which may cause mismatch.
Fill both blanks to create a toleration that tolerates any taint with key 'key' and effect 'NoExecute'.
tolerations: - key: "key" operator: "[1]" effect: "[2]"
Using operator 'Exists' means the toleration ignores the value and tolerates any taint with the key. The effect must be 'NoExecute' to match the taint effect.
Fill all three blanks to create a pod toleration that matches a taint with key 'key', value 'value', and effect 'NoSchedule'.
tolerations: - key: "[1]" operator: "[2]" value: "[3]" effect: "NoSchedule"
The toleration must specify the exact key, use operator 'Equal' to match the value, and specify the taint's value to tolerate it properly.