DKP Insights Upgrade
This version of DKP Insights does not support upgrades.
To go from a version to a more recent one, you must delete the previous DKP Insights instance, upgrade DKP and install the more recent version of DKP Insights. This means that data is not migrated, existing alerts are not preserved and Insights-related data is lost.
Applications
DKP Insights consists of two applications that you must delete and re-install:
The Insights Management application
The Insights Engine application
Overview
The Insights Management and Engine are not able to communicate with each other until they are upgraded to the same DKP Insights version. D2iQ recommends not resolving Insight alerts until the full DKP Insights upgrade has been completed.
Uninstall all DKP Insights Engines
Disable all DKP Insights Engine applications in the same way you would disable any other application. Disable those instances per cluster via the UI or CLI.
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.
Replaceworkspace-namespace
twice in the following command with the DKP Workspace Namespace where the Insights Engine was installed.BASHkubectl delete pvc \ data-dkp-insights-postgresql-0 \ data-dkp-insights-seaweedfs-volume-0 \ data-dkp-insights-seaweedfs-volume-1 \ data-dkp-insights-seaweedfs-volume-2 \ data-filer-dkp-insights-seaweedfs-filer-0 \ data-<workspace-namespace>-dkp-insights-seaweedfs-master-0 \ logs-dkp-insights-seaweedfs-volume-0 \ logs-dkp-insights-seaweedfs-volume-1 \ logs-dkp-insights-seaweedfs-volume-2 \ seaweedfs-filer-log-volume-dkp-insights-seaweedfs-filer-0 \ seaweedfs-master-log-volume-dkp-insights-seaweedfs-master-0 \ -n <workspace-namespace>
Uninstall DKP Insights Management via CLI
Uninstall the Insights Management application in the Management cluster using the DKP CLI:
Ensure your configuration references the cluster where the Insights Engine is installed. See Provide Context for Commands with a kubeconfig File for more information.
Run the following command:
CODEkubectl delete insights -A --all
Upgrade DKP
Install a more Recent Version of Insights
Ensure this version of Insights is compatible with the upgraded DKP version by reviewing DKP and Insights Compatibility.
Open your modified Kommander installer configuration file.
Re-enable Insights by adding the following values to your existing
kommander.yaml
:CODE... apps: [...] dkp-insights-management: enabled: true ...
Re-install the Kommander component of DKP depending on your environment.