Uninstall Portworx from a Kubernetes cluster using the Operator
If you’re using the Portworx Operator, you can uninstall Portworx by adding a delete strategy to your
StorageCluster object, then deleting it. When uninstalling, you may choose to either keep the the data on your drives, or wipe them completely.
- You must already be running Portworx through the Operator, this method will not work for other Portworx deployments
kubectl editcommand to modify your storage cluster:
kubectl edit -n kube-system storagecluster <storagecluster_name>
StorageClusterobject, adding the
deleteStrategyfield with either the
Uninstall Portworx only:
apiVersion: core.libopenstorage.org/v1 kind: StorageCluster metadata: name: portworx namespace: kube-system spec: deleteStrategy: type: Uninstall
Uninstall Portworx and wipe all drives:WARNING: Wipe operations remove all data from your disks permanently including the Portworx metadata, use caution when applying the DeleteStrategy spec.
apiVersion: core.libopenstorage.org/v1 kind: StorageCluster metadata: name: portworx namespace: kube-system spec: deleteStrategy: type: UninstallAndWipe
kubectl deletecommand, specifying the name of your
kubectl delete StorageCluster <your-storagecluster> -n <name-space> kube-system