Graceful uninstallation of Director OnPrem setup can be carried out using below mentioned steps:
In case there are more than one clusters connected to Director OnPrem setup, it is recommended to disconnect all the connected clusters(except the self connected cluster) from the UI itself and then start the Director OnPrem cleanup process.
To uninstall Director OnPrem cluster, execute the following command:
For helm version < 3.0.x
helm delete <release name> --purge
For helm version >= 3.0.x
helm uninstall <realease name> -n <namespace>
To know the current helm version, execute:helm versionand, for knowing the current release name, execute:helm ls --namespace <namespace>Sample Output:NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE dop 1 Fri Dec 8 12:20:46 2019 DEPLOYED mayaonprem-1.7.0 1.7.0 director
Delete the PVC from custom namespace
Custom namespace: The namespace where Director OnPrem was installed.
The custom namespace consists of server components of Director. To view the PVCs, execute the following command:
kubectl get pvc -n <custom_namespace>
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE cassandra-data-cassandra-0 Bound pvc-940b63b0-260d-11ea-9d0d-42010a80020f 50Gi RWO standard 16m data-mysql-0 Bound pvc-93c03d3a-260d-11ea-9d0d-42010a80020f 50Gi RWO standard 16m elasticsearch-logging-od-elasticsearch-logging-0 Bound pvc-94295656-260d-11ea-9d0d-42010a80020f 50Gi RWO standard 16m grafana-claim Bound pvc-91d3aeb1-260d-11ea-9d0d-42010a80020f 50Gi RWO standard 16m mayastore Bound pvc-91d496b4-260d-11ea-9d0d-42010a80020f 10Gi RWO standard 16m
All the PVCs displayed above have to be deleted. Ensure only the above PVCs are present in the namespace where Director OnPrem is installed. To delete, execute:
kubectl delete pvc -n <custom_namespace> --all
NOTE: In case there are other PVCs deployed, delete only the above mentioned PVCs.kubectl delete pvc -n <custom_namespace> <pvc_name>
Delete the 'maya-system' namespace.
After deletion of the server components of Director in Step 2, we need to delete client-side components present on the cluster where Director OnPrem is installed. These components are by default deployed in maya-system namespace in the same cluster where Director gets installed.
To delete maya-system namespace, execute:
kubectl delete ns maya-system