Kaspersky Unified Monitoring and Analysis Platform

Preparing the k0s.inventory.yml inventory file

April 8, 2024

ID 269310

To create the k0s.inventory.yml inventory file:

  1. Go to the KUMA installer folder by executing the following command:

    cd kuma-ansible-installer-ha

  2. Copy the k0s.inventory.yml.template file to create the expand.inventory.yml inventory file:

    cp k0s.inventory.yml.template k0s.inventory.yml

  3. Edit the inventory file settings in k0s.inventory.yml.

    Sample inventory file for a demo installation with the Core in Kubernetes

    For a demo installation, specify deploy_example_services: true. KUMA will deploy demo services on the specified hosts and assign the shard, replica, and keeper roles to the specified host; configuring these roles in the KUMA web interface is not necessary for a demo installation.

    Sample inventory file for a distributed installation in a high availability configuration with 3 controllers, 2 worker nodes, and 1 balancer

    For such a configuration, specify the need_transfer: false, airgap: true, deploy_example_services: false, and in the kuma_storage section, list the servers for the storage cluster. After the installation is complete, you can use the KUMA web interface to assign the shard, replica and keeper roles to the servers specified in the inventory.

    Sample inventory file for migrating the Core from a distributed installation to a Kubernetes cluster to ensure high availability

    The kuma_core, kuma_ collector, kuma_correlator, kuma_storage sections of your k0s.inventory.yml inventory file must contain the same hosts that were used in the distributed.inventory.yml file when KUMA was upgraded from version 2.1.3 to version 3.0.3 or when a new installation was performed. In the k0s.inventory.yml inventory file, set deploy_to_k8s: true, need_transfer: true, airgap: true, deploy_example_services: false.

We recommend backing up the inventory file that you used to install the program. You can use it to add components to the system or remove KUMA.

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.