Skip to main content

Uninstalling Kratix

platform cluster

To uninstall Kratix you need to run through the following steps:

  1. Delete all installed Promises:
kubectl --context $PLATFORM delete promises --all -A

This will remove all of the Resource workloads from your State Store.

  1. Delete all other Kratix resources:
kubectl --context $PLATFORM delete destinations --all -A
kubectl --context $PLATFORM delete bucketstatestores --all -A
kubectl --context $PLATFORM delete gitstatestores --all -A
  1. Kratix can now be uninstalled:
kubectl delete -f https://github.com/syntasso/kratix/releases/latest/download/kratix.yaml

Worker Destination

In the previous steps Kratix will have deleted all the Resource workloads from the State Store, which will result in them being deleting from the worker Destination. The only changes that need to be made on the worker is deleting Flux (if installed just for Kratix) and the Flux resources that sync down from the State Store.

  1. Find the relevant Kustomization resource:
kubectl --context $WORKER get kustomizations -A
  1. Delete the Kustomizations that are for Kratix.
kubectl --context $WORKER delete kustomization <name>
  1. Find the relevant Bucket or GitRepository resource:
kubectl --context $WORKER get buckets,gitrepositories -A
  1. Delete the ones that are for Kratix.
kubectl --context $WORKER delete bucket/gitrepositories <name>

State Store

The State Store should now be empty, verify this manually. In the event any files are left behind they can manually be deleted.