Contents
Distributed installation
The distributed installation of KUMA involves multiple steps:
- Verifying that the hardware, software, and installation requirements for KUMA are satisfied.
- Preparing the control machine.
The control machine is used during the application installation process to extract and run the installer files.
- Preparing the target machines.
The application components are installed on the target machines.
- Preparing the distributed.inventory.yml inventory file.
Create an inventory file with a description of the network structure of application components. The installer uses this inventory file to deploy KUMA.
- Installing the application.
Install the application and log in to the web interface.
- Creating services.
Create the client part of the services in the KUMA web interface and install the server part of the services on the target machines.
Make sure the KUMA installation is complete before you install KUMA services. We recommend installing services in the following order: storage, collectors, correlators, agents.
When deploying several KUMA services on the same host, during installation, you must specify unique ports for each service using the
--api.port <port>
parameter.
If necessary, you can change the KUMA web console certificate to your company's certificate.
Preparing the test machine
To prepare the control machine for installing KUMA:
- Ensure that hardware, software, and installation requirements of the application are met.
- Generate an SSH key for authentication on the SSH servers of the target machines:
sudo ssh-keygen -f /root/.ssh/id_rsa -N "" -C kuma-ansible-installer
If SSH root access is blocked on the control machine, generate an SSH key for authentication on the SSH servers of the target machines for a user from the sudo group:
ssh-keygen -f /home/<
name of the user from the sudo group
>/.ssh/id_rsa -N "" -C kuma-ansible-installer
As a result, the key is generated and saved in the user's home directory. To make the key available during installation, you must specify the full path to the key in the inventory file, in the ansible_ssh_private_key_file setting.
- Make sure that the control machine has network access to all the target machines by host name and copy the SSH key to each target machine:
sudo ssh-copy-id -i /root/.ssh/id_rsa root@<
host name of the control machine
>
If SSH root access is blocked on the control machine and you want to use the SSH key from the home directory of the user from the sudo group, make sure that the control machine has network access to all target machines by host name and copy the SSH key to each target machine:
ssh-copy-id -i /home/<
name of the user in the sudo group
>/.ssh/id_rsa <
name of the user in the sudo group
>@<
host name of the control machine
>
- Copy the installer archive
kuma-ansible-installer-<version>.tar.gz
to the control machine and extract it using the following command (approximately 2 GB of disk space is required):sudo tar -xpf kuma-ansible-installer-<
version
>.tar.gz
The control machine is prepared for installing KUMA.
Page topPreparing the target machine
To prepare the target machine for the installation of KUMA components:
- Ensure that hardware, software, and installation requirements are met.
- Specify the host name. We recommend specifying a FQDN. For example, kuma1.example.com.
Do not change the KUMA host name after installation: this will make it impossible to verify the authenticity of certificates and will disrupt the network communication between the application components.
- Register the target machine in your organization's DNS zone to allow host names to be resolved to IP addresses.
If your organization does not use a DNS server, you can use the /etc/hosts file for name resolution. The content of the files can be automatically generated for each target machine when installing KUMA.
- To get the hostname that you must specify when installing KUMA, run the following command and record the result:
hostname -f
The control machine must be able to access the target machine using this name.
The target machine is ready for the installation of KUMA components.
Page topPreparing the distributed.inventory.yml inventory file
To create the distributed.inventory.yml inventory file:
- Go to the KUMA installer folder by executing the following command:
cd kuma-ansible-installer
- Create an inventory file named distributed.inventory.yml by copying distributed.inventory.yml.template:
cp distributed.inventory.yml.template distributed.inventory.yml
- Edit the settings in the distributed.inventory.yml.
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.
Example inventory file for distributed installation
Page topInstalling the program in a distributed configuration
KUMA is installed using the Ansible tool and a YML inventory file. The installation is performed from the control machine, and all of the KUMA components are installed on target machines.
To install KUMA:
- On the control machine, go to the directory containing the extracted installer.
cd kuma-ansible-installer
- Depending on the type of license activation that you plan to use, do one of the following:
- If you want to activate your license with a file, place the file with the license key in <installer directory>/roles/kuma/files/.
The key file must be named license.key.
sudo cp <
key file
>.key <
installer directory
>/roles/kuma/files/license.key
- If you want to activate with a license code, go to the next step of these instructions.
- If you want to activate your license with a file, place the file with the license key in <installer directory>/roles/kuma/files/.
- From the directory with the extracted installer, start the installation of components using the prepared inventory file, distributed.inventory.yml:
sudo ./install.sh distributed.inventory.yml
- Accept the terms and conditions of the End User License Agreement.
If you do not accept the terms and conditions of the End User License Agreement, the application cannot be installed.
Depending on the type of license activation, the installer produces one of the following results:
- If you want to activate the license using a file and have placed the file with the license key in "<installer directory>/roles/kuma/files/", running the installer with the "distributed.inventory.yml" inventory file installs KUMA Core, all services specified in the inventory file, and OOTB resources.
- If you want to activate with a license code or provide a license file later, running the installer with the "distributed.inventory.yml" inventory file installs only KUMA Core.
To install the services, specify the license code on the command line. Then run the postinstall.sh installer with the "distrtibuter.inventory.yml" inventory file.
sudo ./postinstall.sh distributed.inventory.yml
This creates the specified services. You can select the resources that you want to import from the repository.
- After the installation is complete, log in to the KUMA web interface and enter the address of the KUMA web interface in the address bar of your browser, then enter your credentials on the login page.
The address of the KUMA web interface is
https://<
FQDN of the host where KUMA is installed
>:7220
.Default login credentials:
- login:admin
- password:mustB3Ch@ng3d!
After logging in for the first time, change the password of the admin account
All KUMA components are installed and you are logged in to the web interface.
We recommend saving a backup copy of the inventory file that you used to install the application. You can use this inventory file to add components to the system or remove KUMA.
Page top