ei-pattern-1

by Helm

Helm chartv6.6.0-3App 6.6.0

A Helm chart for the deployment of WSO2 EI Integrator-Analytics profile

About this chart

Helm Chart for deployment of Integrator profile of WSO2 Enterprise Integrator with Analytics

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 (compatible with v1.10) in order to run the steps provided in the following quick start guide.

  • An already setup Kubernetes cluster.

  • Install NGINX Ingress Controller.

  • Add the WSO2 Helm chart repository

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

Quick Start Guide

In the context of this document,

  • KUBERNETES_HOME will refer to a local copy of the wso2/kubernetes-ei Git repository.
  • HELM_HOME will refer to <KUBERNETES_HOME>/advanced/ei-pattern-1.

1. Clone Kubernetes Resources for WSO2 Enterprise Integrator Git repository.

git clone https://github.com/wso2/kubernetes-ei.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.

MySQL Configurations

ParameterDescriptionDefault Value
wso2.mysql.enabledEnable MySQL chart as a dependencytrue
wso2.mysql.hostSet MySQL server hostwso2ei-rdbms-service-mysql
wso2.mysql.usernameSet MySQL server usernamewso2carbon
wso2.mysql.passwordSet MySQL server passwordwso2carbon
wso2.mysql.driverClassSet JDBC driver class for MySQLcom.mysql.jdbc.Driver
wso2.mysql.validationQueryValidation query for the MySQL serverSELECT 1

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.

Centralized Logging Configurations

ParameterDescriptionDefault Value
wso2.centralizedLogging.enabledEnable Centralized logging for WSO2 componentstrue
wso2.centralizedLogging.logstash.imageTagLogstash Sidecar container image tag7.2.0
wso2.centralizedLogging.logstash.elasticsearch.usernameElasticsearch usernameelastic
wso2.centralizedLogging.logstash.elasticsearch.passwordElasticsearch passwordchangeme
wso2.centralizedLogging.logstash.indexNodeID.wso2ISNodeElasticsearch EI Node log index ID(index name: ${NODE_ID}-${NODE_IP})wso2

Monitoring Configurations

ParameterDescriptionDefault Value
wso2.monitoring.enabledEnable Prometheus monitoringfalse
wso2.monitoring.prometheus.blackBoxNamespacePrometheus blackbox exporter namespace<RELEASE_NAMESPACE>
wso2.monitoring.prometheus.jmxJobNamePrometheus job namejmx
wso2.monitoring.prometheus.serviceMonitor.labelsPrometheus labels for identifying Service Monitor"release: monitoring"

Integrator Profile Configurations

ParameterDescriptionDefault Value
wso2.deployment.wso2ei.imageNameImage name for EI nodewso2ei
wso2.deployment.wso2ei.imageTagImage tag for EI node6.6.0
wso2.deployment.wso2ei.replicasNumber of replicas for EI node1
wso2.deployment.wso2ei.minReadySecondsRefer to doc1 75
wso2.deployment.wso2ei.strategy.rollingUpdate.maxSurgeRefer to doc1
wso2.deployment.wso2ei.strategy.rollingUpdate.maxUnavailableRefer to doc0
wso2.deployment.wso2ei.livenessProbe.initialDelaySecondsInitial delay for the live-ness probe for EI node40
wso2.deployment.wso2ei.livenessProbe.periodSecondsPeriod of the live-ness probe for EI node10
wso2.deployment.wso2ei.readinessProbe.initialDelaySecondsInitial delay for the readiness probe for EI node40
wso2.deployment.wso2ei.readinessProbe.periodSecondsPeriod of the readiness probe for EI node10
wso2.deployment.wso2ei.imagePullPolicyRefer to docAlways
wso2.deployment.wso2ei.resources.requests.memoryThe minimum amount of memory that should be allocated for a Pod1Gi
wso2.deployment.wso2ei.resources.requests.cpuThe minimum amount of CPU that should be allocated for a Pod2000m
wso2.deployment.wso2ei.resources.limits.memoryThe maximum amount of memory that should be allocated for a Pod2Gi
wso2.deployment.wso2ei.resources.limits.cpuThe maximum amount of CPU that should be allocated for a Pod2000m

Note: The above mentioned default, minimum resource amounts for running WSO2 Enterprise Integrator server profiles are based on its official documentation.

Analytics Worker Instance One Runtime Configurations

ParameterDescriptionDefault Value
wso2.deployment.wso2eiAnalyticsWorker1.imageNameImage name for EI Analytics Worker nodewso2ei-analytics-worker
wso2.deployment.wso2eiAnalyticsWorker1.imageTagImage tag for EI Analytics Worker node6.6.0
wso2.deployment.wso2eiAnalyticsWorker1.replicasNumber of replicas for EI node1
wso2.deployment.wso2eiAnalyticsWorker1.minReadySecondsRefer to doc30
wso2.deployment.wso2eiAnalyticsWorker1.strategy.rollingUpdate.maxSurgeRefer to doc2
wso2.deployment.wso2eiAnalyticsWorker1.strategy.rollingUpdate.maxUnavailableRefer to doc0
wso2.deployment.wso2eiAnalyticsWorker1.livenessProbe.initialDelaySecondsInitial delay for the live-ness probe for EI Analytics Worker node20
wso2.deployment.wso2eiAnalyticsWorker1.livenessProbe.periodSecondsPeriod of the live-ness probe for EI Analytics Worker node10
wso2.deployment.wso2eiAnalyticsWorker1.readinessProbe.initialDelaySecondsInitial delay for the readiness probe for EI Analytics Worker node20
wso2.deployment.wso2eiAnalyticsWorker1.readinessProbe.periodSecondsPeriod of the readiness probe for EI Analytics Worker node10
wso2.deployment.wso2eiAnalyticsWorker1.imagePullPolicyRefer to [doc](https://kubernetes.io/docs/concepts/containers

Deploy ei-pattern-1 with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ei-pattern-1 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 chartei-pattern-1 is pinned at v6.6.0-3 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