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¶
-
Ensure you have an active WSO2 Subscription. If you don't have a subscription, sign up for a WSO2 Free Trial Subscription.
Note
You need an active subscription to use the updated Docker images of the ICP with your Helm resources. Otherwise, you can use the community version of the Docker images, which do not include product updates.
-
Install Git, Helm, and the Kubernetes client.
-
Set up a Kubernetes cluster.
-
Install the NGINX Ingress Controller.
Note
Helm resources for WSO2 product deployment patterns are compatible with the ingress-nginx
controller-v1.11.2release.
Step 1 - Get the Helm resources¶
Check out the Helm Micro Integrator Git repository.
- Open a terminal and navigate to the location where you want to save the local copy.
-
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.
-
Open the
values.yamlfile in the<HELM_HOME>/icpfolder of your local copy. -
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.yamlfile 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.
-
-
Save the
values.yamlfile.
Step 3 - Deploy the ICP¶
Once you have configured your Helm resources locally, follow the instructions below to deploy the ICP.
- Open a terminal and navigate to the
<HELM_HOME>/icpfolder. -
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
- Be sure to replace
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:
-
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 -
Add the above host information to your
/etc/hostsfile:<EXTERNAL-IP> icp.wso2.com -
Now you can login to ICP at
https://icp.wso2.com/login.