micro-integrator

by Helm

Helm chartv4.2.0-1App 4.2.0

A Helm chart for WSO2 Micro-Integrator

About this chart

Helm Chart for deployment of WSO2 Micro Integrator

Contents

  • Prerequisites
  • Quick Start Guide

Prerequisites

  • In order to use WSO2 Helm resources, you need an active WSO2 subscription. If you do not possess an active WSO2 subscription already, you can sign up for a WSO2 Free Trial Subscription from here . Otherwise you can proceed with docker images which are created using GA releases.

  • Install Git, Helm (and Tiller) and Kubernetes client in order to run the steps provided in the following quick start guide.

  • An already setup Kubernetes cluster.

  • Install NGINX Ingress Controller. Please note that Helm resources for WSO2 product deployment patterns are compatible with NGINX Ingress Controller Git release nginx-0.30.0.

  • Add the WSO2 Helm chart repository.

     helm repo add wso2 https://helm.wso2.com && helm repo update
    

Quick Start Guide

Install Chart From WSO2 Helm Chart Repository

1. Deploy Helm chart for WSO2 Micro Integrator deployment

  • Helm v2

    Deploy WSO2 Micro Integrator using Docker images from WSO2 Private Docker Registry.

    helm install --name <RELEASE_NAME> wso2/micro-integrator --version 4.2.0-1 --namespace <NAMESPACE> --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD>
    
  • Helm v3

    Deploy WSO2 Micro Integrator using Docker images from WSO2 Private Docker Registry.

    helm install <RELEASE_NAME> wso2/micro-integrator --version 4.2.0-1 --namespace <NAMESPACE> --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD> --create-namespace
    

If you are using a custom WSO2 Docker images you will need to provide those information via the input values. Please refer Micro Integrator Deployment Configurations

Note:

  • NAMESPACE should be the Kubernetes Namespace in which the resources are deployed.

2. Access Micro Integrator.

Default deployment will expose <RELEASE_NAME> as the host.

To access the Micro Integrator in the environment,

a. Obtain the external IP (EXTERNAL-IP) of the Ingress resources by listing down the Kubernetes Ingresses.

kubectl get ing -n <NAMESPACE>
NAME                                                 HOSTS                      ADDRESS        PORTS     AGE
<RELEASE_NAME>-micro-integrator-service-ingress      mi.wso2.com                <EXTERNAL-IP>  80, 443   3m
<RELEASE_NAME>-micro-integrator-management-ingress   management.mi.wso2.com     <EXTERNAL-IP>  80, 443   3m

b. Add the above host as an entry in /etc/hosts file as follows:

<EXTERNAL-IP>	mi.wso2.com 
<EXTERNAL-IP>	management.mi.wso2.com 

Note: From the above Helm commands, base image of a Micro Integrator is deployed (without any integration solution). To deploy your integration solution with the Helm charts follow the below steps.

  1. Create an integration service using WSO2 Integration Studio. Then create a Docker image and push it to your private or public Docker registry. - INTEGRATION_IMAGE_REGISTRY will refer to the Docker registry that created Docker image has been pushed - INTEGRATION_IMAGE_NAME will refer to the name of the created Docker image - INTEGRATION_IMAGE_TAG will refer to the tag of the created Docker image
  2. If your Docker registry is a private registry, create an imagePullSecret. - IMAGE_PULL_SECRET will refer to the created image pull secret
  3. Deploy the helm resource using following command.
helm install <RELEASE_NAME> wso2/micro-integrator --version 4.2.0-1 --namespace <NAMESPACE> --set wso2.deployment.mi.dockerRegistry=<INTEGRATION_IMAGE_REGISTRY> --set wso2.deployment.mi.imageName=<INTEGRATION_IMAGE_NAME> --set wso2.deployment.mi.imageTag=<INTEGRATION_IMAGE_TAG> --set wso2.deployment.mi.imagePullSecrets=<IMAGE_PULL_SECRET>

Install Chart From Source

In the context of this document,

  • KUBERNETES_HOME will refer to a local copy of the [wso2/kubernetes-mi](https://github.com/wso2 /kubernetes-mi/) Git repository.
  • HELM_HOME will refer to <KUBERNETES_HOME>/helm/micro-integrator.

1. Clone the Kubernetes Resources for WSO2 Micro Integrator Git repository.

git clone https://github.com/wso2/kubernetes-mi.git

2. Provide configurations.

a. The default product configurations are available at <HELM_HOME>/confs folder. Change the configurations as necessary.

b. Open the <HELM_HOME>/values.yaml and provide the following values.

WSO2 Subscription Configurations

ParameterDescriptionDefault Value
wso2.subscription.usernameYour WSO2 Subscription username""
wso2.subscription.passwordYour WSO2 Subscription password""

If you do not have active WSO2 subscription do not change the parameters wso2.deployment.username, wso2.deployment.password.

Micro Integrator Deployment Configurations

ParameterDescriptionDefault Value
wso2.deployment.mi.dockerRegistryDocker registry of the micro-integrator image""
wso2.deployment.mi.imageNameImage name for micro-integrator node""
wso2.deployment.mi.imageTagImage tag for micro-integrator node""
wso2.deployment.mi.replicasNumber of replicas for micro-integrator node1
wso2.deployment.mi.strategy.rollingUpdate.maxSurgeRefer to doc1
wso2.deployment.mi.strategy.rollingUpdate.maxUnavailableRefer to doc0
wso2.deployment.mi.livenessProbe.initialDelaySecondsInitial delay for the live-ness probe for micro-integrator node40
wso2.deployment.mi.livenessProbe.periodSecondsPeriod of the live-ness probe for micro-integrator node10
wso2.deployment.mi.readinessProbe.initialDelaySecondsInitial delay for the readiness probe for micro-integrator node40
wso2.deployment.mi.readinessProbe.periodSecondsPeriod of the readiness probe for micro-integrator node10
wso2.deployment.mi.imagePullPolicyRefer to docAlways
wso2.deployment.mi.resources.requests.memoryThe minimum amount of memory that should be allocated for a Pod1Gi
wso2.deployment.mi.resources.requests.cpuThe minimum amount of CPU that should be allocated for a Pod2000m
wso2.deployment.mi.resources.limits.memoryThe maximum amount of memory that should be allocated for a Pod2Gi
wso2.deployment.mi.resources.limits.cpuThe maximum amount of CPU that should be allocated for a Pod2000m
wso2.deployment.mi.envs The List of environment variables that should configured for a Pod2000m
wso2.deployment.mi.synapseTest.enabled Enable Synapse testingfalse
wso2.ingress.services.hostnameThe Host name for the Micro integrator Services ingressmi.wso2.com
wso2.ingress.services.annotationsAnnotations for the Micro Integrator Services IngressNginx ingress annotations
wso2.ingress.management.hostnnameThe Host name for the Micro integrator Management ingressmanagement.mi.wso2.com
wso2.ingress.management.annotationsAnnotations for the Micro Integrator Management IngressNginx ingress annotations

3. Deploy WSO2 Micro Integrator.

  • Helm v2

    helm install --name <RELEASE_NAME> <HELM_HOME> --namespace <NAMESPACE>
    
  • Helm v3

    helm install <RELEASE_NAME> <HELM_HOME> --namespace <NAMESPACE>
    

NAMESPACE should be the Kubernetes Namespace in which the resources are deployed

4. Access Micro Integrator.

Default deployment will expose <RELEASE_NAME> as the host.

To access the Micro Integrator in the environment,

a. Obtain the external IP (EXTERNAL-IP) of the Ingress resources by listing down the Kubernetes Ingresses.

kubectl get ing -n <NAMESPACE>
NAME                                                  HOSTS                      ADDRESS        PORTS     AGE
<RELEASE_NAME>-micro-integrator-service-ingress       mi.wso2.com                <EXTERNAL-IP>  80, 443   3m
<RELEASE_NAME>-micro-integrator-management-ingress    management.mi.wso2.com     <EXTERNAL-IP>  80, 443   3m

b. Add the above host as an entry in /etc/hosts file as follows:

<EXTERNAL-IP>	mi.wso2.com 
<EXTERNAL-IP>	management.mi.wso2.com 

Deploy micro-integrator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has micro-integrator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmicro-integrator is pinned at v4.2.0-1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply