Uninstall Portworx installed using AWS Marketplace
Uninstall Portworx
Perform the following steps to uninstall Portworx:
-
Edit the storage cluster:
kubectl -n <namespace> edit storagecluster <yourclustername> -
Add the following lines to your YAML
specsection:
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
-
Save the spec and exit out.
-
Delete the storagecluster:
kubectl -n <namespace> delete storagecluster <yourclustername> -
Once all the portworx related pods are gone, uninstall/delete the
my-releasedeployment:helm uninstall my-releaseThis command removes all the Kubernetes components associated with the chart and deletes the release.