There is a question which is a bit confusing. Set the node named node-1 as unav . . .

Gokboru:
There is a question which is a bit confusing.

Set the node named node-1 as unavailable and reschedule all the pods running on it.

What will be the correct solution for it?

  1. Cordon first and then drain OR
  2. Drain it which will do both the things as per lecture video.

Second question is about significance of using keyword “–disableexcludes=kubernetes” in the command “apt-get install kubeadm=1.20.0-00 kubelet=1.20.0-00 iidisableexcludes=kubernetes” during cluster upgrade.

Fernando Jordan Silva:

  1. Drain contains the cordon orden, so using drain is enough.

Fernando Jordan Silva:
in your system, you can (yuo should) have some kubernetes packages excluded from update ( you can do it using for example “apt-mark hold <package>” ). Using --disableexcludes you are including in the update / installation the package in the paramete. So: “apt-get install kubeadm=1.20.0-00 --disableexcludes=kubernetes” you are saying that you want to install kubeadm and if it’s included in an excluded package called “kubernetes”, the system must include it.