ob-pattern-2

by Helm

Helm chartv2.0.0-1App 2.0.0

A Helm chart for the deployment of WSO2 Open Banking pattern 2

About this chart

Helm Chart for deployment of WSO2 Open Banking API Manager with Identity & Access Management Module and Business Intelligence Support

Resources for building a Helm chart for deployment of All-In-One WSO2 Open Banking API Manager with WSO2 Open Banking Identity & Access Managment Module support.

For advanced details on the deployment pattern, please refer to the official documentation.

Contents

  • Prerequisites
  • Quick Start Guide
  • Configuration
  • Runtime Artifact Persistence and Sharing
  • Managing Java Keystores and Truststores
  • Configuring SSL in Service Exposure

Prerequisites

  • WSO2 product Docker images used for the Kubernetes deployment.

    For a production grade deployment of the desired WSO2 product-version, it is highly recommended to use the relevant Docker image which packages WSO2 Updates, available at WSO2 Private Docker Registry.

    In order to use these images, you need an active WSO2 Subscription.

  • Install Git, Helm 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.

    Ensure that you have enabled SSL Passthrough support in the Ingress Controller. For instructions on enabling SSL Passthrough at the NGINX Ingress Controller, please refer to the official documentation.

  • Add the WSO2 Helm chart repository.

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

Quick Start Guide

1. Install the Helm Chart

You can install the relevant Helm chart either from WSO2 Helm Chart Repository or by source.

Note:

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

Install Chart From WSO2 Helm Chart Repository

Helm version 2

helm install --name <RELEASE_NAME> wso2/ob-pattern-2 --version 2.0.0-1 --namespace <NAMESPACE> --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD>

Note:

  • Specification to deploy is set to Berlin by default, use following to deploy UK specification instead of Berlin for Helm version 2.
helm install --name <RELEASE_NAME> wso2/ob-pattern-2 --version 2.0.0-1 --namespace <NAMESPACE> --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD> --set mysql-ob.wso2.deployment.spec.berlin.enabled=false --set mysql-ob.wso2.deployment.spec.uk.enabled=true

Helm version 3

helm install <RELEASE_NAME> wso2/ob-pattern-2 --version 2.0.0-1 --namespace <NAMESPACE> --create-namespace --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD>

Note:

  • Specification to deploy is set to Berlin by default, use following to deploy UK specification instead of Berlin for Helm version 3.
helm install <RELEASE_NAME> wso2/ob-pattern-2 --version 2.0.0-1 --namespace <NAMESPACE> --create-namespace --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD> --set mysql-ob.wso2.deployment.spec.berlin.enabled=false --set mysql-ob.wso2.deployment.spec.uk.enabled=true

Install Chart From Source

In the context of this document,

Clone the Helm resources for WSO2 Open Banking Git repository.

git clone https://github.com/wso2/kubernetes-open-banking.git

Deploy Helm chart for WSO2 Open Banking Pattern 2 deployment.

Helm version 2

helm install --dep-up --name <RELEASE_NAME> <GIT_REPO>/ob-pattern-2 --version 2.0.0-1 --namespace <NAMESPACE> --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD>

Note:

  • Specification to deploy is set to Berlin by default, use following to deploy UK specification instead of Berlin for Helm version 2.
helm install --dep-up --name <RELEASE_NAME> <GIT_REPO>/ob-pattern-2 --version 2.0.0-1 --namespace <NAMESPACE> --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD> --set mysql-ob.wso2.deployment.spec.berlin.enabled=false --set mysql-ob.wso2.deployment.spec.uk.enabled=true

Helm version 3

helm install <RELEASE_NAME> <GIT_REPO>/ob-pattern-2 --version 2.0.0-1 --namespace <NAMESPACE> --dependency-update --create-namespace --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD>

Note:

  • Specification to deploy is set to Berlin by default, use following to deploy UK specification instead of Berlin for Helm version 3.
helm install <RELEASE_NAME> <GIT_REPO>/ob-pattern-2 --version 2.0.0-1 --namespace <NAMESPACE> --dependency-update --create-namespace --set wso2.subscription.username=<SUBSCRIPTION_USERNAME> --set wso2.subscription.password=<SUBSCRIPTION_PASSWORD>

2. Obtain the external IP

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

kubectl get ing -n <NAMESPACE>

The output under the relevant column stands for the following.

API Manager Admin Portal, Carbon Management Console, API Publisher and Developer Portal

  • NAME: Metadata name of the Kubernetes Ingress resource (defaults to wso2ob-pattern-2-ob-am-ingress)
  • HOSTS: Hostname of the API Manager service (<wso2.deployment.ob.am.ingress.management.hostname>)
  • ADDRESS: External IP (EXTERNAL-IP) exposing the API Manager service to outside of the Kubernetes environment
  • PORTS: Externally exposed service ports of the API Manager service

API Manager Gateway

  • NAME: Metadata name of the Kubernetes Ingress resource (defaults to wso2ob-pattern-2-ob-am-gateway-ingress)
  • HOSTS: Hostname of the API Manager's Gateway service (<wso2.deployment.ob.am.ingress.gateway.hostname>)
  • ADDRESS: External IP (EXTERNAL-IP) exposing the API Manager's Gateway service to outside of the Kubernetes environment
  • PORTS: Externally exposed service ports of the API Manager's Gateway service

Identity & Access Management Module Carbon Management Console

  • NAME: Metadata name of the Kubernetes Ingress resource (defaults to wso2ob-pattern-2-ob-km-ingress)
  • HOSTS: Hostname of the Identity & Access Management Module service (<wso2.deployment.ob.km.ingress.hostname>)
  • ADDRESS: External IP (EXTERNAL-IP) exposing the Identity & Access Management Module service to outside of the Kubernetes environment
  • PORTS: Externally exposed service ports of the Identity & Access Management Module service

Business Intelligence (BI) Dashboard

  • NAME: Metadata name of the Kubernetes Ingress resource (defaults to wso2ob-pattern-2-ob-bi-dashboard-ingress)
  • HOSTS: Hostname of the BI Dashboard service (<wso2.deployment.ob.bi.dashboard.ingress.hostname>)
  • ADDRESS: External IP (EXTERNAL-IP) exposing the BI Dashboard service to outside of the Kubernetes environment
  • PORTS: Externally exposed service ports of the BI Dashboard service

3. Add a DNS record mapping the hostnames and the external IP

If the defined hostnames (in the previous step) are backed by a DNS service, add a DNS record mapping the hostnames and the external IP (EXTERNAL-IP) in the relevant DNS service.

If the defined hostnames are not backed by a DNS service, for the purpose of evaluation you may add an entry mapping the hostnames and the external IP in the /etc/hosts file at the client-side.

<EXTERNAL-IP> <wso2.deployment.ob.am.ingress.management.hostname> <wso2.deployment.ob.am.ingress.gateway.hostname> <wso2.deployment.ob.km.ingress.hostname> <wso2.deployment.ob.bi.dashboard.ingress.hostname>

4. Access Management Consoles

  • API Manager Admin Portal: https://<wso2.deployment.ob.am.ingress.management.hostname>/admin

  • API Manager Carbon Management Console: https://<wso2.deployment.ob.am.ingress.management.hostname>/carbon

  • API Manager Publisher: https://<wso2.deployment.ob.am.ingress.management.hostname>/publisher

  • API Manager Developer Portal: https://<wso2.deployment.ob.am.ingress.management.hostname>/devportal

  • Identity & Access Management Module Carbon Management Console: https://<wso2.deployment.ob.km.ingress.hostname>/carbon

Please refer the official documentation for advanced usage details.

Configuration

The following tables lists the configurable parameters of the chart and their default values.

WSO2 Subscription Configurations

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

Chart Dependencies

ParameterDescriptionDefault Value
wso2.deployment.dependencies.mysqlEnable the deployment and usage of WSO2 API Management MySQL based Helm Charttrue
wso2.deployment.dependencies.nfsProvisionerEnable the deployment and usage of NFS Server Provisioner (https://github.com/helm/charts/tree/master/stable/nfs-server-provisioner)true

Persistent Runtime Artifact Configurations

ParameterDescriptionDefault Value
wso2.deployment.persistentRuntimeArtifacts.storageClassAppropriate Kubernetes Storage Classnfs
wso2.deployment.persistentRuntimeArtifacts.sharedArtifacts.capacity.executionPlansCapacity for execution plans shared between the Traffic Manager profile instances20M
wso2.deployment.persistentRuntimeArtifacts.sharedArtifacts.capacity.synapseConfigsCapacity for synapse artifacts of APIs shared between the Gateway profile instances50M
wso2.deployment.persistentRuntimeArtifacts.sharedArtifacts.capacity.userstoresCapacity for secondary user stores between Identity Server instances50M
wso2.deployment.persistentRuntimeArtifacts.apacheSolrIndexing.enabledIndicates if persistence of the runtime artifacts for Apache Solr-based indexing is enabledfalse
wso2.deployment.persistentRuntimeArtifacts.apacheSolrIndexing.capacity.carbonDatabaseCapacity for persisting the H2 based local Carbon database file50M
wso2.deployment.persistentRuntimeArtifacts.apacheSolrIndexing.capacity.solrIndexedDataCapacity for persisting the Apache Solr indexed data50M

API Manager Server Configurations

ParameterDescriptionDefault Value
wso2.deployment.ob.am.dockerRegistryRegistry location of the Docker image to be used to create API Manager instances-
`wso2.deployment.ob.am.i

Deploy ob-pattern-2 with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ob-pattern-2 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 chartob-pattern-2 is pinned at v2.0.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