is-pattern-2

by Helm

Helm chartv5.9.0-1App 5.9.0

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_HOME will refer to a local copy of the wso2/kubernetes-is Git repository.
  • HELM_HOME will 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

ParameterDescriptionDefault Value
wso2.mysql.enabledEnable MySQL chart as a dependencytrue

Analytics MySQL Configurations

ParameterDescriptionDefault Value
wso2.analyticsMysql.hostSet MySQL server hostwso2is-rdbms-service-mysql
wso2.analyticsMysql.usernameSet MySQL server usernamewso2carbon
wso2.analyticsMysql.passwordSet MySQL server passwordwso2carbon
wso2.analyticsMysql.driverClassSet JDBC driver class for MySQLcom.mysql.jdbc.Driver
wso2.analyticsMysql.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.subscription.username, wso2.subscription.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

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"

Identity Server Configurations

ParameterDescriptionDefault Value
wso2.deployment.wso2is.imageNameImage name for IS nodewso2is
wso2.deployment.wso2is.imageTagImage tag for IS node5.8.0
wso2.deployment.wso2is.replicasNumber of replicas for IS node1
wso2.deployment.wso2is.minReadySecondsRefer to doc1 75
wso2.deployment.wso2is.strategy.rollingUpdate.maxSurgeRefer to doc1
wso2.deployment.wso2is.strategy.rollingUpdate.maxUnavailableRefer to doc0
wso2.deployment.wso2is.livenessProbe.initialDelaySecondsInitial delay for the live-ness probe for IS node40
wso2.deployment.wso2is.livenessProbe.periodSecondsPeriod of the live-ness probe for IS node10
wso2.deployment.wso2is.readinessProbe.initialDelaySecondsInitial delay for the readiness probe for IS node40
wso2.deployment.wso2is.readinessProbe.periodSecondsPeriod of the readiness probe for IS node10
wso2.deployment.wso2is.imagePullPolicyRefer to docAlways
wso2.deployment.wso2is.resources.requests.memoryThe minimum amount of memory that should be allocated for a Pod1Gi
wso2.deployment.wso2is.resources.requests.cpuThe minimum amount of CPU that should be allocated for a Pod2000m
wso2.deployment.wso2is.resources.limits.memoryThe maximum amount of memory that should be allocated for a Pod2Gi
wso2.deployment.wso2is.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 Identity Server profiles are based on its official documentation.

Analytics Worker Runtime Configurations

ParameterDescriptionDefault Value
wso2.deployment.wso2isAnalyticsWorker1.imageNameImage name for IS Analytics Node 1wso2is
wso2.deployment.wso2isAnalyticsWorker1.imageTagImage tag for IS Analytics Node 15.8.0
wso2.deployment.wso2isAnalyticsWorker1.replicasNumber of replicas for IS Analytics Node 11
wso2.deployment.wso2isAnalyticsWorker1.minReadySecondsRefer to doc1 30
wso2.deployment.wso2isAnalyticsWorker1.strategy.rollingUpdate.maxSurgeRefer to doc2
wso2.deployment.wso2isAnalyticsWorker1.strategy.rollingUpdate.maxUnavailableRefer to doc0
wso2.deployment.wso2isAnalyticsWorker1.livenessProbe.initialDelaySecondsInitial delay for the live-ness probe for IS Analytics Node 120
wso2.deployment.wso2isAnalyticsWorker1.livenessProbe.periodSecondsPeriod of the live-ness probe for IS Analytics Node 110
wso2.deployment.wso2isAnalyticsWorker1.readinessProbe.initialDelaySecondsInitial 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartis-pattern-2 is pinned at v5.9.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