3.0.X
Search…
⌃K

Uninstall

This section describes how to uninstall TrilioVault for Kubernetes (TVK)
There are two types of uninstallation of TVK:
  • Application uninstallation
  • Complete TVK cleanup

Application Uninstallation

Application uninstallation only deletes the TVK application and keeps all TVK custom resources. Users can follow these steps in case retaining the backups after application uninstallation is required. e.g. upgrade

RedHat OpenShift User Interface

  1. 1.
    Delete the TrilioVault Manager CR from TrilioVault for Kubernetes operator using OpenShift user interface console
  2. 2.
    Uninstall the TrilioVault for Kubernetes Operator - can be done directly from the OpenShift user interface console. After a successful uninstall the TrilioVault application will not be available.

Upstream Kubernetes

  1. 1.
    Delete the TrilioVault Manager CR. When you uninstall the TVM CR, the triliovault-manager helm release will be uninstalled.
kubectl delete tvm triliovault-manager --namespace <TVK-installation-namespace>
If delete TVM CR triliovault-manager gets stuck then on another terminal, edit the TVM CR, remove the finalizer section and save it.
kubectl edit tvm triliovault-manager --namespace <TVK-installation-namespace>
Remove below section:
finalizers:
- uninstall-helm-release
This will complete the delete operation.
2. Uninstall the Helm Operator
helm uninstall triliovault-operator --namespace <TVK-installation-namespace>

Complete TVK Cleanup

Note: Complete cleanup of TVK will remove all of TVK's custom resources - backup, restore, target etc along with the application itself. If users wish to only remove application while keeping the backups as is, follow the application uninstallation guide mentioned above.
To cleanup TrilioVault for Kubernetes, the custom resources, CRDs and the Operator must be removed from the Kubernetes cluster or namespace. There are two ways users can cleanup TVK - automated (via a Trilio provided plugin) or manually removing all the items.

Automated Cleanup

TrilioVault provides a plugin that automates the uninstall of all the resources and objects created to support the solution. The automation provides a non-interactive mode to allow unattended uninstall of the solution, and also provides an interactive mode to specifically uninstall different components. For further details, refer to the TVK Cleanup Plugin.

Manual Cleanup

Users can manually cleanup components of the TrilioVault solution using the steps mentioned below

RedHat OpenShift User Interface

  1. 1.
    Delete all the custom resources associated with Trilio - Backup, Restores, Targets, Hooks, BackupPlans, ClusterBackupPlan etc.
  2. 2.
    Delete the TrilioVault Manager CR from TrilioVault for Kubernetes operator using OpenShift user interface console
  3. 3.
    Uninstall the TrilioVault for Kubernetes Operator - can be done directly from the OpenShift user interface console. After a successful uninstall the TrilioVault application will not be available.
  4. 4.
    Do not forget to delete the TrilioVault CRDs from the CRD page of OpenShift. Or run oc delete crds $(oc get crds | grep trilio | awk '{print $1}')from OpenShift CLI

Upstream Kubernetes

Use the following steps to cleanup TrilioVault for Kubernetes on all other certified Kubernetes distributions where the Trilio operator was installed via Helm.
  1. 1.
    Delete all the custom resources associated with Trilio - Backup, Restores, Targets, Hooks, BackupPlans, ClusterBackupPlan etc.
  2. 2.
    Delete the TrilioVault Manager CR. When you uninstall the TVM CR, the triliovault-manager helm release will be uninstalled.
kubectl delete tvm triliovault-manager --namespace <TVK-installation-namespace>
If delete TVM CR triliovault-manager gets stuck then on another terminal, edit the TVM CR, remove the finalizer section and save it.
kubectl edit tvm triliovault-manager --namespace <TVK-installation-namespace>
Remove below section:
finalizers:
- uninstall-helm-release
This will complete the delete operation.
3. Uninstall the Helm Operator
helm uninstall triliovault-operator --namespace <TVK-installation-namespace>
4. Delete all the TrilioVault CRDs
kubectl delete crds $(kubectl get crds | grep trilio | awk '{print $1}')