Multi Node Installation
Instructions to deploy and configure Multi Node K2 On-Premises Portal on your infrastructure.
Prerequisites:
Before continuing to deployment for On-Premises, Make sure all the prerequisites from below link are met.
Installation Steps
Step 1: Download Installer
Download the tar of on-premises installation files from K2 Portal.
Alternatively Go to On-Premises Installer | K2 Portal
Step 2: Untar it using the following command.
tar -xvf k2onpreminstaller.tgz --no-same-owner
Step 3: Navigate to the k2onpreminstaller directory.
cd k2onpreminstaller
Step 4: Update the topology_config.ini
Update the topology_config.ini file to update following configurations in the file.
Deployment type:
Complete (Full-fledged installation)
Installation Location:
Update installation location with absolute path to a directory where you wish to place all the K2 components.
Note: Do not use the installer directory(k2onpreminstaller) as the installation location.
Single VM:
false.
Enable clair components:
Set it to true if you wish to install the clair components(image vulnerability scanning) on single machine, false otherwise.
Backup Target Location[Only applicable on Local VM deployment]:
Set a directory location to store the cloud backups taken every night.
Note:
It is recommended to use a directory which is mounted on a separate disk to ensure the safety of backups in case of a disaster.
The backup directory used should support mount & unmount operations as it will be used to restore the backups in case of a disaster.
List of IPs:
Info: Please configure static IPs to the machines and configure those IPs in the configuration file.
In the case of single machine installation, configure the IP only in the single_vm_ip field and leave the other IPs as it is.
Otherwise, set the six different IPs on which you wish to install the components.
Note:
The controller host machine and host1 can be the same.
K2 UI Public IP:
Public IP of the machine to be be configured in K2 components.
SSH Credentials:
Update the SSH user which is used to access the instance.
In case of password based authentication, please update the SSH password and in case of PEM based authentication, please update the PEM file location.
Default login credentials:
Username: demo@k2ui.com
Password: demo12345
Note: If you have updated the credentials in topology_config.ini file, then use those credentials to login.
Step 5: Install K2 components using the following command.
bash k2onpreminstall.sh -i 2>&1 | tee -a k2onprem_install_output.txt
Step 6: Access Your K2 Portal Link
https://${MY_K2PORTAL_IP}/centralmanager/
Specify the host IP on which you have performed the installation in the below-given box. In the case of six machine installation, please use the IP specified under the host5 section in the topology_config.ini file
Once the installation is complete, you will get the login credentials using which you can login on the K2 UI opened via the above generated link.
Step 7 : Troubleshooting
If you face any issues in the installation check our troubleshooting page
TroubleshootingLast updated
Was this helpful?