Skip to content

Deploy the Integration Control Plane (ICP) on Kubernetes using Helm resources

Follow the instructions below to deploy the ICP on Kubernetes (K8s) using Helm resources.

Before you begin

Step 1 - Get the Helm resources

Check out the Helm Micro Integrator Git repository.

  1. Open a terminal and navigate to the location where you want to save the local copy.
  2. Clone the Helm Micro Integrator Git (helm-mi) repository with Helm resources:

    git clone https://github.com/wso2/helm-mi.git
    git checkout origin/4.3.x
    

This creates a local copy of the wso2/helm-mi repository, which includes all the Helm resources for WSO2 MI and ICP.

Let's refer to the root folder of the local copy as <HELM_HOME>.

Step 2 - Update the deployment configurations

Follow the steps below to configure your ICP deployment.

  1. Open the values.yaml file in the <HELM_HOME>/icp folder of your local copy.

  2. Use the following guidelines to update the deployment configurations:

    • Update the WSO2 subscription details

      You can update the username and password in the following section. If you don't have an active WSO2 subscription, leave these parameters empty.

      wso2:
          subscription:
              username: "<username>"
              password: "<password>"
      

      Alternatively, you can skip this step and pass your subscription details during deployment (see the next step for details).

    • Update the ICP Docker images

      By default, the values.yaml file uses the base ICP image to set up the deployment.

      containerRegistry: "registry.wso2.com"
      wso2:
          deployment:
              image: 
                  repository: "wso2-integration-control-plane"
                  tag: "1.0.0"
      
    • You can update other configurations as needed.

  3. Save the values.yaml file.

Step 3 - Deploy the ICP

Once you have configured your Helm resources locally, follow the instructions below to deploy the ICP.

  1. Open a terminal and navigate to the <HELM_HOME>/icp folder.
  2. Run the command appropriate for your Helm version.

    Tip

    • Be sure to replace <NAMESPACE> with the Kubernetes namespace where your Micro Integrator pods are deployed.
    • Give a release name of your preference as <RELEASE_NAME>.

    • Using Helm v3:

      helm install <RELEASE_NAME> ./ -f values.yaml -n <NAMESPACE> --create-namespace
      

Note

For a pre-configured, easy setup for a local deployment, use the values_local.yaml file.

Update configurations during deployment

If needed, you can set deployment configurations at the time of deployment instead of specifying them in the values.yaml file. See the examples below.

  • Set the subscription username and password:

    --set wso2.subscription.username=<SUBSCRIPTION_USERNAME>
    --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD>
    
  • Set the custom Micro Integrator Docker image:

    --set containerRegistry=<CUSTOM_IMAGE_REGISTRY>
    --set wso2.deployment.image.repository=<CUSTOM_IMAGE_REPOSITORY>
    --set wso2.deployment.image.tag=<CUSTOM_IMAGE_TAG>
    
  • Use the following parameter only if your custom Docker image is stored in a private Docker registry:

    --set wso2.deployment.imagePullSecrets=<IMAGE_PULL_SECRET>
    

Your ICP Kubernetes deployment should now be created.

Step 4 - Access the ICP

To access the ICP dashboard, follow these steps from your terminal:

  1. Get the external IP (EXTERNAL-IP) of the Ingress resources by listing the Kubernetes ingresses.

    kubectl get ing -n <NAMESPACE>
    

    Example:

    NAME            CLASS   HOSTS         ADDRESS        PORTS     AGE
    cloud-<RELEASE_NAME>   nginx   icp.wso2.com   <EXTERNAL-IP>   80, 443   27m
    
  2. Add the above host information to your /etc/hosts file:

    <EXTERNAL-IP>   icp.wso2.com 
    
  3. Now you can login to ICP at https://icp.wso2.com/login.