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
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:
-
Select Settings → Deployment Targets.
-
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:
-
In the Remove Deployment Target window, select Show Deployments.
noteIf 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.
-
The All Deployments page displays a list of data service(s) that run on the cluster you want to remove.
-
Delete only the deployed data services you do not wish to preserve.
-
Set your kubeconfig profile to connect to your target cluster with admin privileges.
-
Uninstall PDS helm chart.
helm uninstall -n pds-system pds
-
Select Settings → Deployment Targets.
-
Wait for the cluster status to display as Disconnected.
-
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.
-
In the Remove Deployment Target window, select Show Deployments. If this option is unavailable, then continue with Step 14.
-
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.
-
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.
-
Select Remove in the Remove Deployment Target window that appears.
noteYou 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.