How we can mark nodes as unavailable or does unavailable means draining the node . . .

vShyfur:
How we can mark nodes as unavailable or does unavailable means draining the nodes?

John Paul:
It means cordon them

Narendra Singh:
@John Paul Drain also makes node unavailable (SchedulingDisabled). It implicitly do the cordon command part, plus evicts the pods from the node as well.
So, if we drain instead of cordon, is the answer incorrect? Please provide links as well if any.

Basavraj Nilkanthe:
@Narendra Singh when it explicity mention to make it unschedulable and it is better to use cordon

Basavraj Nilkanthe:
as John suggestested

Basavraj Nilkanthe:
there is no point of draining it in this case

Narendra Singh:
Right @Basavraj Nilkanthe. I agree to your point. That means if use drain command in this case the answer is incorrect and we will be losing marks.

Basavraj Nilkanthe:
yes

vShyfur:
thank you all. it means for such a case, we will use cordon instead of drain.