Deploying WSO2 Micro Integrator 4.0.0 Project along with a connector through Jenkins pipeline to Kubernetes

Prerequisite

  1. Setup a Kubernetes cluster it can be a production grade cluster or a minikube cluster, here in this article I’m using the minikube cluster deployed in the DigitalOcean.
  2. Setup NFS server to use as the persistence volume
  3. Setup MySQL database
  4. Setup Nexus Server
  5. Setup Jenkins Server

What we are going to setup

1. Connector Implementation

Execute the below command to generate the connector project structure.

2. Adding the connector to a Project

Now we need to add the connector to the project to make it use through Micro Integrator.

3. Testing the API in the standalone Micro Integrator

Download a Micro Integrator 4.0.0 distribution from the WSO2 and Export a CAR file and test whether the flow is working.

4. Preparation for kubernetes deployment

As an initial step to configure the log4j.properties based on our need Go to the FetchIPDockerExporter folder and copy the base log4j.properties and update the needed info.

5. Preparing the Environment Variable Config Project

Create a folder called mi-projects and create a similar project structure like this to keep the environment wise config maps and do the deployment through pipeline.

6. Deploying the Dashboard

Build the custom image by overriding the deployment.toml through Dockerfile by adding the base image of wso2 micro integrator dashboard.

7. Deploying the Micro Integrator Project

Create a pipeline and deploy the project

8. Deployment Order

  • Initially deploy the configs project
  • then micro integrator dashboard
  • finally the micro integrator projects

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ajanthan Eliyathamby 🇱🇰

Ajanthan Eliyathamby 🇱🇰

Associate Architect — Enterprise Integration | WSO2 Certified Solution Architect | https://ajanthane.blogspot.com/