Preparing the distributed.inventory.yml file for installing KUMA with multiple KUMA Core services on a Raft cluster
KUMA components can be installed, updated, and removed in the directory containing the extracted installer by using the AnsibleĀ® tool and the user-created YML inventory file containing a list of the hosts of KUMA components and other settings.
To create a distributed.inventory.yml file for installing KUMA with multiple KUMA Core services on a Raft cluster:
- Go to the KUMA installer directory 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.
Manually add the kuma-core-peers group to the inventory file and specify the servers for installing additional KUMA Core services. Together, the kuma-core and kuma-core-peers groups must list an odd number of servers.
The kuma-core-00000000-0000-0000-0000-000000000000 service is installed on a server from the kuma_core group (displayed as core-1 in the web interface). On all servers from the kuma_core_peers group, the kuma-core-UID services are sequentially installed and started (displayed as core-<FQDN> in the web interface). These services are connected to the core-1 service. Only one KUMA Core service can be installed on each server.
We recommend saving a backup copy of the inventory file that you used to install the application. You can use it to add components to the system or remove KUMA.
Example distributed.inventory.yml file for installing KUMA with multiple KUMA Core services on a Raft cluster
all:
vars:
deploy_to_k8s: false
need_transfer: false
generate_etc_hosts: false
deploy_example_services: false
no_firewall_actions: false
kuma:
vars:
ansible_connection: ssh
ansible_user: root
children:
kuma_core:
hosts:
kuma-core-1.example.com:
ip: 0.0.0.0
raft_node_addr: ""
kuma_core_peers:
hosts:
kuma-core-2.example.com:
ip: 0.0.0.0
kuma-core-1.example.com:
ip: 0.0.0.0
kuma_collector:
hosts:
kuma-collector-1.example.com:
ip: 0.0.0.0
kuma_correlator:
hosts:
kuma-correlator-1.example.com:
ip: 0.0.0.0
kuma_storage:
hosts:
kuma-storage-cluster1-server1.example.com:
ip: 0.0.0.0
shard: 2
replica: 2
keeper: 0
kuma-storage-cluster1-server2.example.com:
ip: 0.0.0.0
shard: 2
replica: 2
keeper: 0
kuma-storage-cluster1-server3.example.com:
ip: 0.0.0.0
shard: 2
replica: 2
keeper: 0
kuma-storage-cluster1-server4.example.com:
ip: 0.0.0.0
shard: 2
replica: 2
keeper: 0
kuma-storage-cluster1-server5.example.com:
ip: 0.0.0.0
shard: 0
replica: 0
keeper: 3
kuma-storage-cluster1-server6.example.com:
ip: 0.0.0.0
shard: 0
replica: 0
keeper: 2
kuma-storage-cluster1-server7.example.com:
ip: 0.0.0.0
shard: 0
replica: 0
keeper: 3
Page top