is-pattern-2
by Helm
A Helm chart for the deployment of WSO2 IS Pattern 2 Deployment
About this chart
Helm Chart for deployment of WSO2 Identity Server with WSO2 Identity Server 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.Please note that Helm resources for WSO2 product deployment patterns are compatible with NGINX Ingress Controller Git release
nginx-0.22.0. -
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_HOMEwill refer to a local copy of thewso2/kubernetes-isGit repository.HELM_HOMEwill refer to<KUBERNETES_HOME>/advanced/.
1. Clone the Kubernetes Resources for WSO2 Identity Server Git repository.
git clone https://github.com/wso2/kubernetes-is.git
2. Provide configurations.
a. The default product configurations are available at <HELM_HOME>/is-pattern-2/confs folder. Change the
configurations as necessary.
b. Open the <HELM_HOME>/is-pattern-2/values.yaml and provide the following values.
MySQL Chart Configurations
| Parameter | Description | Default Value |
|---|---|---|
wso2.mysql.enabled | Enable MySQL chart as a dependency | true |
Analytics MySQL Configurations
| Parameter | Description | Default Value |
|---|---|---|
wso2.analyticsMysql.host | Set MySQL server host | wso2is-rdbms-service-mysql |
wso2.analyticsMysql.username | Set MySQL server username | wso2carbon |
wso2.analyticsMysql.password | Set MySQL server password | wso2carbon |
wso2.analyticsMysql.driverClass | Set JDBC driver class for MySQL | com.mysql.jdbc.Driver |
wso2.analyticsMysql.validationQuery | Validation query for the MySQL server | SELECT 1 |
WSO2 Subscription Configurations
| Parameter | Description | Default Value |
|---|---|---|
wso2.subscription.username | Your WSO2 Subscription username | "" |
wso2.subscription.password | Your WSO2 Subscription password | "" |
If you do not have active WSO2 subscription do not change the parameters wso2.subscription.username, wso2.subscription.password.
Centralized Logging Configurations
| Parameter | Description | Default Value |
|---|---|---|
wso2.centralizedLogging.enabled | Enable Centralized logging for WSO2 components | true |
wso2.centralizedLogging.logstash.imageTag | Logstash Sidecar container image tag | 7.2.0 |
wso2.centralizedLogging.logstash.elasticsearch.username | Elasticsearch username | elastic |
wso2.centralizedLogging.logstash.elasticsearch.password | Elasticsearch password | changeme |
Monitoring Configurations
| Parameter | Description | Default Value |
|---|---|---|
wso2.monitoring.enabled | Enable Prometheus monitoring | false |
wso2.monitoring.prometheus.blackBoxNamespace | Prometheus blackbox exporter namespace | <RELEASE_NAMESPACE> |
wso2.monitoring.prometheus.jmxJobName | Prometheus job name | jmx |
wso2.monitoring.prometheus.serviceMonitor.labels | Prometheus labels for identifying Service Monitor | "release: monitoring" |
Identity Server Configurations
| Parameter | Description | Default Value |
|---|---|---|
wso2.deployment.wso2is.imageName | Image name for IS node | wso2is |
wso2.deployment.wso2is.imageTag | Image tag for IS node | 5.8.0 |
wso2.deployment.wso2is.replicas | Number of replicas for IS node | 1 |
wso2.deployment.wso2is.minReadySeconds | Refer to doc | 1 75 |
wso2.deployment.wso2is.strategy.rollingUpdate.maxSurge | Refer to doc | 1 |
wso2.deployment.wso2is.strategy.rollingUpdate.maxUnavailable | Refer to doc | 0 |
wso2.deployment.wso2is.livenessProbe.initialDelaySeconds | Initial delay for the live-ness probe for IS node | 40 |
wso2.deployment.wso2is.livenessProbe.periodSeconds | Period of the live-ness probe for IS node | 10 |
wso2.deployment.wso2is.readinessProbe.initialDelaySeconds | Initial delay for the readiness probe for IS node | 40 |
wso2.deployment.wso2is.readinessProbe.periodSeconds | Period of the readiness probe for IS node | 10 |
wso2.deployment.wso2is.imagePullPolicy | Refer to doc | Always |
wso2.deployment.wso2is.resources.requests.memory | The minimum amount of memory that should be allocated for a Pod | 1Gi |
wso2.deployment.wso2is.resources.requests.cpu | The minimum amount of CPU that should be allocated for a Pod | 2000m |
wso2.deployment.wso2is.resources.limits.memory | The maximum amount of memory that should be allocated for a Pod | 2Gi |
wso2.deployment.wso2is.resources.limits.cpu | The maximum amount of CPU that should be allocated for a Pod | 2000m |
Note: The above mentioned default, minimum resource amounts for running WSO2 Identity Server profiles are based on its official documentation.
Analytics Worker Runtime Configurations
| Parameter | Description | Default Value |
|---|---|---|
wso2.deployment.wso2isAnalyticsWorker1.imageName | Image name for IS Analytics Node 1 | wso2is |
wso2.deployment.wso2isAnalyticsWorker1.imageTag | Image tag for IS Analytics Node 1 | 5.8.0 |
wso2.deployment.wso2isAnalyticsWorker1.replicas | Number of replicas for IS Analytics Node 1 | 1 |
wso2.deployment.wso2isAnalyticsWorker1.minReadySeconds | Refer to doc | 1 30 |
wso2.deployment.wso2isAnalyticsWorker1.strategy.rollingUpdate.maxSurge | Refer to doc | 2 |
wso2.deployment.wso2isAnalyticsWorker1.strategy.rollingUpdate.maxUnavailable | Refer to doc | 0 |
wso2.deployment.wso2isAnalyticsWorker1.livenessProbe.initialDelaySeconds | Initial delay for the live-ness probe for IS Analytics Node 1 | 20 |
wso2.deployment.wso2isAnalyticsWorker1.livenessProbe.periodSeconds | Period of the live-ness probe for IS Analytics Node 1 | 10 |
wso2.deployment.wso2isAnalyticsWorker1.readinessProbe.initialDelaySeconds | Initial dela |
Deploy is-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 is-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 chartis-pattern-2 is pinned at v5.9.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