Prerequisites for automated migration
- Ashhad Alam
Before you perform the migration steps, you need to make sure that you have met the prerequisites discussed in this section. Both Export and Import activities have their own set of prerequisites to adhere to.
Prerequisites for Export
You need to make sure that you have:
- The Export XML file available in GitHub.
You can generate the Export XML file by following the instructions given on this page. - The Linux OS installed on your system and you have installed the following tools/plugins:
Helm
kubectl client
Jenkins
If you have Jenkins installed on Windows OS, you need to add a Linux agent in Jenkins. Refer to this page to know how to create a Linux agent.Java 1.8+
Installed the following Jenkins plugins:
Kubernetes
Git (git plugin 4.8.3, Git client plugin 3.9.0)
Mask Password
Credentials Binding plugin (1.27)
Parameter Separator (Optional)
BlueOcean (Optional)
- The access to the source Kubernetes environment where the application is installed.
- The access to GitHub repository where you have placed the Export XML file.
Created the credential IDs for GitHub, database, and Kubernetes in Jenkins. You can do so by following the instructions given here.
You can generate credential IDs in Jenkins by using Credentials Binding plugin that helps you store an application's credentials in Jenkins. As you store the credentials in Jenkins, a credential ID is generated which is accessible globally in Jenkins and can be used in lieu of the actual credentials for the application.
a. To create the Credential ID for GitHub and database, you need to select the type of credentials as Username and password.
b. To create the Credential ID for Kubernetes in Jenkins, you need to select the type of credentials as Secret file.
Prerequisites for Import
You need to make sure that you have:
- The Export ZIP file is ready.
- The Import and Retain XMLs are available in GitHub.
- Met the rest of the prerequisites same as that for Export.