Migrate Bold BI Application from Linux to Kubernetes.
Introduction
This section explains how to migrate the Bold BI application from a Linux environment to a Kubernetes environment. It is assumed that the Bold BI DB server has public access, either through a Managed instance or a server deployed in an online VM. To migrate the database, you can refer to this article: link. Follow the steps below to migrate the Bold BI instance from Linux to Kubernetes.
Backup Application Data From Deployed Location
Backup the Bold BI app_data folder in a Linux environment from the following location /var/www/bold-services/application.
Restore Application Data to File Share
We need to restore application data files to your file share based on the cloud provider using the following:
EKS Migration
- Create a new S3 bucket or you use existing S3 bucket for copying app_data from your local machine by following link.
- Now, run the below command to move app_data to s3 bucket.
aws s3 cp --recursive <Source folder location> s3://<S3 bucket name>
- Then create EFS and migrate all data’s from S3 bucket to EFS by following link.
Note : Please use same security group for EKS cluster and EFS file system
- After creating EFS, use DataSync to migrate all data into EFS. You need to create a task in data sync and set sources file as S3 bucket and Destination files as EFS for DataSync by following link.
AKS Migration
-
Create a file share in a storage account on the Azure resource group by using this link.
-
Restore the app_data data as shown in the screenshot to the root folder path of the file share using the Azure Storage Explorer tool.
GKE Migration
- Create a file store in Google cloud service by using this link.
- Mount the created file store in VM instance by using this link.
- Copy the back up app_data folder form VM instance to file store by using thislink.
Deploy Bold BI using the restored file share
- Deploy the Bold BI application in the EKS/AKS/GKE environment by following this document.
Note: Use the same file store while crafting the yaml file.
- Follow these steps if you use a new DNS/IP for the environment. If you are using the same DNS, then you can switch to the next step directly.
- Navigate to [new DNS]/ums/administration in the browser.
https://gke-migrate.boldbi.com/ums/administrationNote: You can use the same Bold BI application login credentials for the new AKS environment.
- Update the new DNS/IP and enable the checkbox.
- After updating the new IP/DNS, save the changes.
- Restart all pods using the following commands.
Example: kubectl rollout restart deploy -n bold-serviceskubectl rollout restart deploy -n <namespace>
- Navigate to [new DNS]/ums/administration in the browser.
- Now, the Bold BI application has been completely migrated from Linux to the Kubernetes environment. You can access Bold BI with the same login credentials.