Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (10)
  • ESXi (1)
  • Git (4)
  • Google Cloud (2)
  • Javascript (6)
  • Kubernetes (2)
  • Linux (33)
  • Mac (6)
  • Magento (4)
  • Mysql (13)
  • PHP (9)
  • Zend framework 2 (9)
  • Posted on June 28, 2021

    When you need to remove a node from a kubernetes cluster, you can clean up the node first, by telling kubernetes to move all the pods to other nodes and not schedule anything new on the node.

    Run this command to empty the node:

    $ kubectl drain --ignore-daemonsets --delete-local-data name-of-the-node 

    After this command you can remove the node from the cluster without any impact on the running services.