Remove a Kubernetes cluster and keep data


Follow the procedure in this topic, if you want to keep one of the following:

  • all or selected data services deployed on this deployment target running

  • backups of data services that were deployed to this deployment target

Prerequisites

  • PDS account Admin privileges

  • An existing deployment target

Procedure

Note
The following procedure works only for deployment targets with PDS chart version 1.5.2 or newer. If your current chart version is less than 1.5.2, then upgrade the PDS system on your target cluster first.

You can run the following command to get the existing PDS chart version:

helm list -n pds-system

Once you confirm the chart version is 1.5.2 or newer, perform the following procedure:

  1. Select SettingsDeployment Targets.

  2. In the Deployment Targets page, select the vertical ellipsis button in the Kubernetes cluster you want to remove, and then select Remove from the options:

    remove cluster option
  3. In the Remove Deployment Target window, select Show Deployments.

    remove cluster window
    Note
    If this option is unavailable, then continue to perform Step 6 in this procedure. In this case, no data services are running on the deployment target. However, the deployment target might still contain backups.
  4. The All Deployments page displays a list of data service(s) that run on the cluster you want to remove.

  5. Delete only the deployed data services you do not wish to preserve.

  6. Set your kubeconfig profile to connect to your target cluster with admin privileges.

  7. Uninstall PDS helm chart.

    helm uninstall -n pds-system pds
  8. Select SettingsDeployment Targets.

  9. Wait for the cluster status to display as Unhealthy.

  10. In the Deployment Targets page, select the vertical ellipsis button in the Kubernetes cluster you want to remove, and then select Remove from the options.

  11. In the Remove Deployment Target window, select Show Deployments. If this option is unavailable, then continue with Step 14.

  12. Delete all deployed data services. Since the PDS system is no longer installed on the deployment target, the data services will be removed from PDS but kept in the deployment target.

  13. In the Deployment Targets page, select the vertical ellipsis button in the Kubernetes cluster you want to remove, and then select Remove from the options.

  14. Select Remove in the Remove Deployment Target window that appears.

    Note
    You cannot undo the remove operation.

Remaining resources such as data services and backups are no longer managed by PDS. If you want to remove them, then refer to the Remove stale resources topic.



Last edited: Thursday, Aug 18, 2022