Uninstall Portworx using Helm
This page provides instructions on how to uninstall Portworx using Helm.
Prerequisites
- You must have installed Portworx using Helm.
- This guide is applicable to below platforms:
- FlashArray
- OpenShift vSphere
Uninstall Portworx
By default, Portworx is installed in the kube-system namespace. If you have installed it in a different namespace, use the -n <namespace> flag. In this example, we will uninstall Portworx that was installed in the portworx namespace.
To uninstall Portworx with the release name px-release follow the steps below:
-
(optional) If you want to uninstall Portworx and wipe data, ensure that the
deleteStrategyparameter is set toUninstallAndWipe. If this parameter was not set during the initial installation, you need to add it to thepx_install_values.yamlfile.notes- If you are running Portworx version 3.5.0 or later on vSphere, AWS, GKE, and Azure platforms with Operator version 25.5.0 or later, you can also set the
deleteStrategyparameter toUninstallAndDelete. Delete operation permanently removes all data from your disks, including Portworx metadata, and deletes the cloud drive. - If you're running KubeVirt virtual machines (VMs), and your default storage class is set to a Portworx storage class, you must set
spec.deleteStrategy.ignoreVolumestotruewhen uninstalling Portworx using theUninstallAndWipeorUninstallAndDeletestrategy. Otherwise, the uninstall process fails. This is because KubeVirt creates boot sources as PersistentVolumeClaims (PVCs) using the default storage class, which might be a Portworx storage class. In general, you can setignoreVolumestotrueif you are running KubeVirt VMs.
If the uninstall fails, check theStorageClusterconditions for more details.
deleteStrategy:
type: UninstallAndWipe - If you are running Portworx version 3.5.0 or later on vSphere, AWS, GKE, and Azure platforms with Operator version 25.5.0 or later, you can also set the
-
Apply the updated delete strategy using the following command:
helm upgrade <px-release> portworx/portworx -n <portworx> -f px_install_values.yamlRelease "px-release" has been upgraded. Happy Helming!
NAME: px-release
LAST DEPLOYED: Thu Sep 26 06:15:16 2024
NAMESPACE: portworx
STATUS: deployed
REVISION: 2
TEST SUITE: None
NOTES:
Your Release is named "px-release"
Portworx Pods should be running on each node in your cluster.
Portworx would create a unified pool of the disks attached to your Kubernetes nodes.
No further action should be required and you are ready to consume Portworx Volumes as part of your application data requirements. -
Verify that the new values have taken effect.
helm get values <px-release> -n <portworx>USER-SUPPLIED VALUES:
deleteStrategy:
type: UninstallAndWipe -
Uninstall the Portworx using the following command.
helm uninstall <px-release> -n <portworx>release "px-release" uninstalled