Kaspersky Deployment Toolkit allows you to remove all Kaspersky XDR Expert components installed in the Kubernetes cluster, the cluster itself, and the KUMA services installed outside the cluster. By using KDT, you can also remove the management web plug-ins of Kaspersky applications, for example, the plug-in of Kaspersky Endpoint Security for Windows.
Removing Kaspersky XDR Expert
To remove the Kaspersky XDR Expert components and related data:
On the administrator host, run the following command:
kdt remove --all
All Kaspersky XDR Expert components installed in the Kubernetes cluster and the cluster itself are removed. If you installed a DBMS inside the cluster, the DBMS is removed, too.
Also, KDT removes the KUMA services installed outside the cluster on the hosts that were specified in the inventory file.
Data related to the Kaspersky XDR Expert components is deleted from the administrator host.
If the administration host does not have network access to a target host, removing the components is interrupted. You can restore network access and restart the removal of Kaspersky XDR Expert. Alternatively, you can remove the Kaspersky XDR Expert components from the target hosts manually (go to the instruction below).
installed the DBMS
on a separate server outside the cluster.Close the ports used by Kaspersky XDR Expert that were opened during the deployment, if needed. These ports are not closed automatically.
Remove the operating system packages that were automatically installed during the deployment, if needed. These packages are not removed automatically.
/home/kdt and /home/.kdt directories.The Kaspersky XDR Expert components, DBMS, and related data are removed, and the ports used by Kaspersky XDR Expert are closed.
To remove the Kaspersky XDR Expert components from the target hosts manually:
On the target host, run the following command to stop the k0s service:
/usr/local/bin/k0s stop
Remove the contents of the following directories:
Required directories:
/etc/k0s//var/lib/k0s//usr/libexec/k0s//usr/local/bin/Optional directories:
/var/lib/containerd//var/cache/k0s//var/cache/kubelet//var/cache/containerd/You can remove the /var/lib/containerd/ and /var/cache/containerd/ directories if the containerd service is used only for the function of Kaspersky XDR Expert. Otherwise, your data contained in the /var/lib/containerd/ and /var/cache/containerd/ directories may be lost.
Contents of the /var/cache/k0s/, /var/cache/kubelet/, and /var/cache/containerd/ directories is automatically removed after you restart the target host. You do not have to clear these folders manually.
The Kaspersky XDR Expert components are deleted from the target hosts.
Removing management web plug-ins
You can remove the management web plug-ins of Kaspersky applications that provide additional functionality for Kaspersky XDR Expert. The Kaspersky XDR Expert services plug-ins are used for the correct function of Kaspersky XDR Expert and cannot be removed (for example, the plug-in of
).To remove a management web plug-in:
If needed, run the following command to obtain the name of the plug-in that you want to remove:
kdt status
The list of components is displayed.
On the administrator host, run the following command. Specify the name of the plug-in that you want to remove:
kdt remove --cnab <plug-in_name>
The specified management web plug-in is removed by KDT.
Page top