Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (11)
  • ESXi (1)
  • Git (4)
  • Google Cloud (3)
  • Javascript (6)
  • Kubernetes (4)
  • Linux (36)
  • Mac (7)
  • Magento (4)
  • Mysql (14)
  • 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.