Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document new uninstall command #380

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 12 additions & 23 deletions platform/how-to/uninstall.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,27 @@ 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

On the Kubernetes cluster where platform is installed, and all connected clusters, run:

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.