Kaspersky Unified Monitoring and Analysis Platform

Delete KUMA

April 8, 2024

ID 217962

To remove KUMA, use the Ansible tool and the user-generated inventory file.

To remove KUMA:

  1. On the test machine, go to the installer folder:

    cd kuma-ansible-installer

  2. Execute the following command:

    sudo ./uninstall.sh <inventory file>

KUMA and all of the program data will be removed from the server.

The databases that were used by KUMA (for example, the ClickHouse storage database) and the information they contain must be deleted separately.

Special considerations for removing a high availability configuration of KUMA

The composition of the removed components depends on the value of the deploy_to_k8s parameter in the inventory file used to remove KUMA:

  • true – the Kubernetes cluster created during the KUMA installation is deleted.
  • false – all KUMA components except for the Core are deleted from the Kubernetes cluster. The cluster is not deleted.

In addition to the KUMA components installed outside the cluster, the following directories and files are deleted on the cluster nodes:

  • /usr/bin/k0s
  • /etc/k0s/
  • /var/lib/k0s/
  • /usr/libexec/k0s/
  • ~/k0s/ (for the ansible_user)
  • /opt/longhorn/
  • /opt/cni/
  • /opt/containerd

When a cluster is being deleted, error messages may appear, however, it does not interrupt the installer.

  • You can ignore such messages for the Delete KUMA transfer job and Delete KUMA pod tasks.
  • For the Reset k0s task (if an error message contains the following text: "To ensure a full reset, a node reboot is recommended.") and the Delete k0s Directories and files task (if an error message contains the following text: "I/O error: '/var/lib/k0s/kubelet/plugins/kubernetes.io/csi/driver.longhorn.io/"), it is recommended to restart the host the error is related to and try to uninstall KUMA again with the same inventory file.

After removing KUMA, restart the hosts on which the KUMA or Kubernetes components were installed.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.