Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 929 Bytes

File metadata and controls

25 lines (18 loc) · 929 Bytes

OS Upgrades

In this section, we will take a look at OS upgrades.

If the node was down for more than 5 minutes, then the pods are terminated from that node

os

  • You can purposefully drain the node of all the workloads so that the workloads are moved to other nodes.

    $ kubectl drain node-1
    
  • The node is also cordoned or marked as unschedulable.

  • When the node is back online after a maintenance, it is still unschedulable. You then need to uncordon it.

    $ kubectl uncordon node-1
    
  • There is also another command called cordon. Cordon simply marks a node unschedulable. Unlike drain it does not terminate or move the pods on an existing node.

    drain

K8s Reference Docs