|
| 1 | +# Deploy with Integration Control Plane |
| 2 | + |
| 3 | +The [WSO2 Integration Control Plane (ICP)](https://wso2.com/integrator/integration-control-plane/) monitors the Ballerina runtime artifacts in a deployment. It provides a graphical view of the integration artifacts that are deployed. |
| 4 | +In this guide, you will learn how to enable Integration Control Plane (ICP) for a Ballerina integration. |
| 5 | + |
| 6 | + |
| 7 | +## Prerequisites |
| 8 | +1. Java 11 or later versions should be installed on your machine. |
| 9 | +2. You must set your `JAVA_HOME` environment variable to point to the directory where the Java Development Kit (JDK) is installed on the computer. |
| 10 | + |
| 11 | +## Step 1: Download and start ICP server |
| 12 | + |
| 13 | +1. Go to the [WSO2 Integration Control Plane](https://wso2.com/integrator/integration-control-plane/) web page. |
| 14 | +2. Click Download. |
| 15 | +3. Provide the necessary details. |
| 16 | +4. Click Zip Archive to download the Integration Control Plane as a ZIP file. |
| 17 | +5. Extract the archive file to a dedicated directory for the Integration Control Plane, which will hereafter be referred to as <ICP_HOME>. |
| 18 | +6. Open a terminal and navigate to the `<ICP_HOME>/bin` folder. |
| 19 | +7. Execute one of the commands given below. |
| 20 | +=== "On MacOS/Linux" |
| 21 | + |
| 22 | + ``` bash |
| 23 | + ./dashboard.sh |
| 24 | + ``` |
| 25 | + |
| 26 | +=== "On Windows" |
| 27 | + |
| 28 | + ``` bash |
| 29 | + dashboard.bat |
| 30 | + ``` |
| 31 | + |
| 32 | +## Step 2: Access the ICP dashboard |
| 33 | +1. Open a web browser and navigate to `https://localhost:9743/dashboard`. |
| 34 | +2. Log in using the default credentials: |
| 35 | + - Username: `admin` |
| 36 | + - Password: `admin` |
| 37 | + |
| 38 | +<a href="{{base_path}}/assets/img/deploy/icp-login.png"><img src="{{base_path}}/assets/img/deploy/icp/icp-login.png" alt="ICP Login" width="70%"></a> |
| 39 | + |
| 40 | +## Step 3: Deploy the Ballerina integration |
| 41 | +1. Navigate to the Visualizer view by clicking on the Ballerina Integrator icon on the sidebar. |
| 42 | +2. Check **`Enable ICP`** under the **`Integration Control Plane`** section in the right panel. |
| 43 | +<a href="{{base_path}}/assets/img/deploy/enable-icp.png"><img src="{{base_path}}/assets/img/deploy/icp/enable-icp.png" alt="Enable ICP" width="70%"></a> |
| 44 | +3. Click on the **`Run`** button to start the integration. |
| 45 | +4. Click on the **`Create Config.toml`** on the prompt to create the `Config.toml` file. |
| 46 | +<a href="{{base_path}}/assets/img/deploy/config-toml.png"><img src="{{base_path}}/assets/img/deploy/icp/config-toml.png" alt="Create Config.toml" width="70%"></a> |
| 47 | +5. Replace the `Config.toml` file config with the following configurations. |
| 48 | + ```toml |
| 49 | + [ballerinax.wso2.controlplane.dashboard] |
| 50 | + url = "https://localhost:9743/dashboard/api" |
| 51 | + heartbeatInterval = 10 |
| 52 | + groupId = "cluster1" |
| 53 | + mgtApiUrl ="https://localhost:9264/management/" |
| 54 | + ``` |
| 55 | +6. Click on the **`Run`** button to start the integration. |
| 56 | +<a href="{{base_path}}/assets/img/deploy/run-integration.gif"><img src="{{base_path}}/assets/img/deploy/icp/run-integration.gif" alt="Run Integration" width="70%"></a> |
| 57 | +7. A log message will be displayed in the console indicating that the integration is connected to the ICP dashboard. |
| 58 | +```time=2025-03-17T15:14:59.970+05:30 level=INFO module=ballerinax/wso2.controlplane message="Connected to dashboard server https://localhost:9743/dashboard/api"``` |
| 59 | + |
| 60 | +## Step 4: View the integration in the ICP dashboard |
| 61 | +1. Go to the ICP dashboard and log in `https://localhost:9743/dashboard`. |
| 62 | +2. In the dashboard, you will see the integration details. |
| 63 | +<img src="{{base_path}}/assets/img/deploy/icp/icp-dashboard.png" alt="ICP Dashboard" width="70%"> |
0 commit comments