ob-pattern-2
by Helm
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:
NAMESPACEshould 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,
GIT_REPOwill refer to a local copy of thewso2/kubernetes-open-bankingGit repository.
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
| Parameter | Description | Default Value |
|---|---|---|
wso2.subscription.username | Your WSO2 Subscription username | - |
wso2.subscription.password | Your WSO2 Subscription password | - |
Chart Dependencies
| Parameter | Description | Default Value |
|---|---|---|
wso2.deployment.dependencies.mysql | Enable the deployment and usage of WSO2 API Management MySQL based Helm Chart | true |
wso2.deployment.dependencies.nfsProvisioner | Enable the deployment and usage of NFS Server Provisioner (https://github.com/helm/charts/tree/master/stable/nfs-server-provisioner) | true |
Persistent Runtime Artifact Configurations
| Parameter | Description | Default Value |
|---|---|---|
wso2.deployment.persistentRuntimeArtifacts.storageClass | Appropriate Kubernetes Storage Class | nfs |
wso2.deployment.persistentRuntimeArtifacts.sharedArtifacts.capacity.executionPlans | Capacity for execution plans shared between the Traffic Manager profile instances | 20M |
wso2.deployment.persistentRuntimeArtifacts.sharedArtifacts.capacity.synapseConfigs | Capacity for synapse artifacts of APIs shared between the Gateway profile instances | 50M |
wso2.deployment.persistentRuntimeArtifacts.sharedArtifacts.capacity.userstores | Capacity for secondary user stores between Identity Server instances | 50M |
wso2.deployment.persistentRuntimeArtifacts.apacheSolrIndexing.enabled | Indicates if persistence of the runtime artifacts for Apache Solr-based indexing is enabled | false |
wso2.deployment.persistentRuntimeArtifacts.apacheSolrIndexing.capacity.carbonDatabase | Capacity for persisting the H2 based local Carbon database file | 50M |
wso2.deployment.persistentRuntimeArtifacts.apacheSolrIndexing.capacity.solrIndexedData | Capacity for persisting the Apache Solr indexed data | 50M |
API Manager Server Configurations
| Parameter | Description | Default Value |
|---|---|---|
wso2.deployment.ob.am.dockerRegistry | Registry 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartob-pattern-2 is pinned at v2.0.0-1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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