These instrucitons will help you install Monq.
ATTENTION
Before installing Monq be sure to read system requirements and product architecture.
Installing Monq is divided into two main steps: preparing infrastructure and installing Monq software.
ATTENTION
Monq products are installed using a VM image.
VM administrator credentials – root/root
.
Import the image into the virtualization system.
The installer image is prepared for import into VMware vSphere 6.5, VMware Workstation, VMWare Player. Also, the image can be successfully converted for import into other virtualization systems. This was checked for Xen, Hyper-V, oVirt(kvm).
You can find reference information on importing into VMWare Workstation here
Use the following recommendations to import the image into VMWare vSphere.
After the first start of the virtual machine, you need to boot into rescue-mode.
After loading the OS, enter the console and execute the dracut -f
command to create a new initramfs
file (initial RAM disk image, a file with a file system image loaded into RAM)
After successfully importing the image into the virtualization environment, create a network interface on the virtual machine and turn on the VM.
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 of the cluster components is not required.
Only performed when manually assigning an IP address.
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-7 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.
Before installing the application software be sure to properly setup infrastructure
ATTENTION
A mandatory requirement before running this script is properly setup infrastructure.
Connect to the virtual machine via SSH.
After rebooting the virtual machine, it takes time for infrastructure entities to start. It is recommended to pause for 5-7 minutes and then continue installing the software.
Login and password:
monq:monq
After logging in, the installer menu will automatically launch.
Select monq-install.
Read the license agreement and click "OK".
Set a domain name for the system being installed.
WARNING
Note that the domain name monq.local
is system reserved and is not allowed.
Select the default locale for the system being installed.
Confirm the correctness of the entered data and start the installation.
At the last stage of the installation, information for connecting to the Monq web interface will be displayed
Authorization data for accessing the Monq web interface after installation:
admin@{global_domain}
monq_admin
Secrets to the Monq infrastructure objects will be stored in Kubernetes pl_auth
and system_auth
secrets.
After successful installation, go to the instructions for managing license keys.
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:
Connect to the virtual machine via SSH:
Login and password
monq:monq
After logging in, the installer menu will automatically launch.
Select monq-erase and confirm your intention to remove the software.
Login and password
monq:monq
monq
user has superuser privileges.If the system is installed using a real domain name and you have an SSL certificate for this domain (files fullchain.pem
and privkey.pem
), run the following command:
kubectl create secret tls {GLOBAL-DOMAIN}-tls --cert={fullchain.pem} --key={privkey.pem} --dry-run -n production -o yaml | kubectl -n production replace -n production -f -
Loading a business (production) calendar.
Download the installer image from the site [monq.ru] (https://monq.ru/download):
The downloaded archive contains a virtual disk file
monq-installer-full.vmdk
with pre-installed system software.
Upload the monq-installer-full.vmdk
file to the datastore of your hypervisor in any convenient way.
Connect to the hypervisor via SSH protocol and run the following command to import the disk image:
#vmkfstools -i {path to monq-installer-full.vmdk} {path to new disk-full.vmdk}
cd /vmfs/volumes/datastore1/
vmkfstools -i monq-installer-full.vmdk disk-full.vmdk
Destination disk format: VMFS zeroedthick
Cloning disk 'monq-installer-full.vmdk'...
Clone: 100% done.
Create a virtual machine, pay special attention to the following parameters when creating:
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.