Cleaning up the MSDP Scaleout operator
You can delete the MSDP Scaleout operator to remove all related resources about MSDP Scaleout operator. The MSDP Scaleout operator and logs are deleted.
To clean up MSDP Scaleout operator from AKS
- If your storage class is with Retain policy, write down the PVs that are associated with the Operator PVCs for deletion in the Kubernetes cluster level.
kubectl get pod,svc,deploy,rs,ds,pvc,secrets,certificates,issuers,cm,sa,role,rolebinding -n <sample-operator-namespace> -o wide
kubectl get clusterroles,clusterrolebindings,pv -o wide --show-labels
- Delete the MSDP Scaleout operator.
kubectl msdp delete [-n <sample-operator-namespace>].
-k: Delete all resources of MSDP Scaleout operator except the namespace.
-n: Namespace scope for this request.
Default value: msdp-operator-system
- If your storage class is with the Retain policy, you must delete the Azure disks on Azure portal or using the Azure CLI.
az disk delete -g $RESOURCE_GROUP --name $AZURE_DISK --yes