From 7134460e88c9a980846842133e98b414e60db64e Mon Sep 17 00:00:00 2001 From: Rohan CJ Date: Fri, 29 Nov 2024 17:49:52 +0530 Subject: [PATCH] document new uninstall command Signed-off-by: Rohan CJ --- platform/how-to/uninstall.mdx | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/platform/how-to/uninstall.mdx b/platform/how-to/uninstall.mdx index d62b2482a..e7edba3e9 100644 --- a/platform/how-to/uninstall.mdx +++ b/platform/how-to/uninstall.mdx @@ -4,38 +4,25 @@ sidebar_label: Uninstall vCluster Platform sidebar_position: 8 --- -## Delete Helm Release -```bash -helm delete -n vcluster-platform loft -``` -Please make sure you also uninstall kiosk, if you have connected the loft cluster: +## Delete The Platform -```bash -helm delete -n vcluster-platform loft-agent -``` +:::warning +This action is done against the cluster the kube-context is pointing to, and not the Platform instance that is logged in. +It does not require logging in to the Platform. +::: -## Delete Namespace (optional) -```bash -kubectl delete ns vcluster-platform -``` +VirtualClusterInstances managed with driver Helm are deleted, but the underlying virtual clusters are not uninstalled -If you have deleted the namespace **without** deleting the vcluster-platform and loft-agent helm releases beforehand, please make sure the api-services and webhooks are deleted correctly: ```bash -# vCluster Platform agent api service and webhook -kubectl delete apiservice v1.cluster.loft.sh -kubectl delete validatingwebhookconfiguration loft-agent +vcluster destroy platform ``` -## Delete CRDs (optional) +## Troubleshooting -```bash -kubectl api-resources --api-group='storage.loft.sh' -o name | xargs kubectl delete crd -``` +If a resource is stuck/errored in deletion, you may have to investigate the logs and status of the stuck resource and remove it manually. -:::warning Data Loss -Deleting the vCluster Platform CRDs will also remove all vCluster Platform objects inside your cluster, e.g. `Cluster`, `Team`, and `User`. This **cannot** be undone. -::: +The command is retryable. \ No newline at end of file