Dok Docs
Github Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

delete&reset

Overview

DOK supports decommissioning Kubernetes nodes and resetting node configuration and files.

delete

delete mainly refers to the removal of Kubernetes nodes. The main logic is as follows:

# Isolate node, evict all containers
kubectl drain --force --delete-local-data --ignore-daemonsets --grace-period=10 $node
# delete node
kubectl delete node $node

reset

Reset mainly refers to the cleaning of nodes. The current solution of reset is relatively violent. The main logic is as follows:

  1. Cleanup process
  2. Cleanup Disk
  3. Cleanup the network
  4. Delete configuration