Uninstall DKP Insights
DKP Insights consists of two applications:
The Insights Management application or
dkp-insights-management
.The Insights Engine application or
dkp-insights
.
To uninstall DKP Insights, disable both applications.
Disable DKP Insights Engine on the Management or Essential Cluster
Disable the DKP Insights Engine application on your Management or Essential cluster. You can use the UI or the CLI to do this.
Delete Persistent Volumes and Persistent Volume Claims on the Management or Essential Cluster
Ensure you delete all remaining data on the Management or Essential cluster, by deleting all Insights-related Persistent Volumes or PVs.
Set the environment variable for the Management/Essential cluster:
CODEexport KUBECONFIG=<management_cluster_kubeconfig>
Delete all remaining data from the Engine clusters on any managed or attached clusters. To execute the following command:
Ensure your configuration references the cluster where the Insights Engine is installed. See Provide Context for Commands with a kubeconfig File for more information.
Ensure your configuration references the correct${WORKSPACE_NAMESPACE}
.CODEkubectl delete pvc \ data-dkp-insights-postgresql-0 \ -n kommander
Delete Insights-related data:
CODEkubectl delete insights --all -A
If you have no additional clusters with Insights installed, go straight to the Disable DKP Insights Management section. If you do have other Managed or Attached clusters with Insights installed, continue with the following section.
Disable DKP Insights Engine on Additional Clusters
This is only required in Enterprise environments where you have installed DKP Insights on additional Managed or Attached clusters.
Delete Persistent Volumes on Additional Clusters
Ensure you delete all remaining data by deleting Insights-related PVs. This is only required in Enterprise environments where you have installed DKP Insights on additional Managed or Attached clusters.
Set the environment variable for the additional cluster:
CODEexport KUBECONFIG=<attached/managed_cluster_kubeconfig>
Delete all remaining data from the Engine clusters on any managed or attached clusters. To execute the following command:
Ensure your configuration references the cluster where the Insights Engine is installed. See Provide Context for Commands with a kubeconfig File for more information.
Ensure your configuration references the correct${WORKSPACE_NAMESPACE}
.CODEkubectl delete pvc \ data-dkp-insights-postgresql-0 \ -n ${WORKSPACE_NAMESPACE}
Delete Insights-related data:
CODEkubectl delete insights --all -A
Disable DKP Insights Management
Disable the DKP Insights Management application on the Management/Essential cluster by deleting the dkp-insights-management
AppDeployment:
kubectl delete appdeployment -n kommander dkp-insights-management