Skip to content

Removing Peat

Deleting the Platform object removes nothing

Section titled “Deleting the Platform object removes nothing”

kubectl delete platform peat stops the operator acting. Every piece keeps running and every database keeps its data. This is on purpose: a deletion by mistake costs nothing, and applying the same Platform again takes everything up where it was.

In this order:

  1. Delete every database while the platform still runs: peat delete <db> --yes, or delete the Database objects. Each compute goes at once.
  2. Delete the four namespaces: kubectl delete namespace peat peat-compute peat-gateway peat-db. The pieces stop.
  3. Remove the data on the machines, if it should go: the directories the Platform’s hostPath settings name, /var/lib/peat by default.
  4. Empty the bucket, if the data should go. Peat never deletes your bucket.
  5. Remove the install file’s objects: kubectl delete -f peat.yaml. This removes the object kinds too, and with them any Platform or Database object left.

A Database deleted after the control layer is gone waits on its finalizer, which is why step 1 comes first.