# Installing the monq product
This tutorial will help you install monq on dedicated servers.
ATTENTION
Before installing monq be sure to read product requirements and architecture.
Installing monq is divided into two main steps:
Use the links below to quickly jump to the desired stage of the installation.
# Infrastructure setup
# Importing a VM Image
ATTENTION
Monq products are installed using a VM image.
VM administrator credentials – root/root
.
Import the image into the virtualization system. Create a network interface on the virtual machine and turn on the VM. You can find help information on import here
The installer image is prepared for import into VMware vSphere 6.5, VMware Workstation, VMWare Player. If you are using VMware vSphere 5.5, pay attention to the following nuances.
ATTENTION
If the VM address is assigned manually, after turning on the VM, you will need to restart components of the kubernetes cluster.
If the address is assigned by the DHCP server, restarting the cluster components is not required.
Restarting kubernetes cluster components:
Go to the VM Console
Stop kubelet:
systemctl stop kubelet
Remove containers
docker ps --format "{{.Names}}" -f "name=k8s_kube*" -f "name=k8s_POD_kube*" | xargs docker rm -f
Start kubelet
systemctl start kubelet
Wait 5 minutes, containers with kubernetes components will be recreated. You can make sure that the cluster is working with the following command
kubectl get po -n kube-system
All components must be running and have the corresponding status Running
# Installing application software
Before installing the application software be sure to properly setup infrastructure
Ensure name resolution on the machine from which the installation will be performed - configure the file hosts
:
<server-IP-address> installer.in.monq.local
# Installing monq
ATTENTION
A mandatory requirement before running this script is properly setup infrastructure.
Go to the installer web interface at the address
installer.in.monq.local:888
(admin/admin).Go to PROJECTS → monq → JOBS and run monq install.
Set a desired value to the variable
global_domain
– main domain name. After launch, the system will be available under the given domain name, for example,monq.example.ru
.Run the script in the web interface - click Run Job Now.
Go to the execution log - click Log Output.
The log of the last operation of the script will display information for connecting to the web interface of monq:
TASK [sm : echo ui interface credentials] ************************************** ok: [d-head] => { "msg": [ "save you credentials:", "- ui interface: <domain name>", "- ui interface username: <username>", "- ui interface password: <password>" ] }
Authorization data to access monq web interface after installation:
- login -
admin@{global_domain}
- password -
monq_admin
Secrets to monq infrastructure objects will be kept as kubernetes secrets pl_auth
and system_auth
.
After successful installation, go to instructions for managing license keys.
# Removing monq
If the installation completed with an error or there was a typo in the domain name, it is recommended to clean the system from traces of the application software - to do this, run a special script:
- Go to the installer web interface at the address
installer.in.monq.local:888
. - Go to PROJECTS → monq → JOBS and run monq erase.
- Set a value to the variable
nodeIp
– the IP address of the server that monq was installed on. - Run the script in the web interface - click Run Job Now.
# Installer peculiarities
# Importing image into VMware ESXI 5.5
Download the installer image as a VM:
The image contains 2 files:
monq_{version}.ovf
monq_{version}-disk1.vmdk
File with extension
monq_{version}.ovf
prepared for VMware vSphere 6.5 and therefore incompatible with VMware vSphere 5.5.Load the file
monq_{version}-disk1.vmdk
in the datastore of your hypervisor in any convenient way.Connect to the hypervisor using the SSH protocol and run the following command to import the disk image:
vmkfstools -i {the path to the file monq_{version}-disk1.vmdk} {path to the new disk image}
Create a virtual machine, pay special attention to the following parameters when creating:
- SCSI controller - LSI Logic Parallel
- Use an existing virtual disk - Select the newly imported disk image from step 3
Save the settings, turn on the virtual machine.
Boot the system for the first time in rescue mode and run the command
dracut -f
to recreate initramfs.Do a reboot
shutdown -r now
and proceed further to setup infrastructure.