Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleRemove node(s)
collapsetrue
# If you don't remember them, find the node names in the inventory/mycluster/hosts.yml file
$ ansible-playbook -i inventory/mycluster/hosts.yaml -b remove-node.yml --extra-vars "node=<node1>,<node2>"

Once the deletion process is finished, remember to delete the node from the inventory file.

Cleanup

You can reset your nodes and wipe out all components installed with Kubespray via the reset.yml playbookTo delete the entire cluster, however, simply use the playbook reset.yaml. In general, it is recommended that you have a look at the inventory file before launching a playbook. It is possible that there are nodes left inside it, but no longer part of the cluster because, for example, they were previously deleted.

...