Uninstalling Kratix
Platform cluster
To uninstall Kratix you need to run through the following steps:
-
Delete all installed Promises:
kubectl --context $PLATFORM delete promises --all -A
This will remove all of the Resource workloads from your State Store.
-
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 -
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.
- Find the relevant
Kustomization
resource:kubectl --context $WORKER get kustomizations -A
- Delete the Kustomizations that are for Kratix.
kubectl --context $WORKER delete kustomization <name>
- Find the relevant
Bucket
orGitRepository
resource:kubectl --context $WORKER get buckets,gitrepositories -A
- 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.