dataplatform-bp1
This Helm chart can be used for the automated deployment of a data platform blueprint containing Kafka, Apache Spark, and Solr. It covers optimized pod sizing and placement diversity rules.
About this chart
Data Platform Blueprint 1 packaged by Bitnami
This Helm chart can be used for the automated deployment of a data platform blueprint containing Kafka, Apache Spark, and Solr. It covers optimized pod sizing and placement diversity rules.
Overview of Data Platform Blueprint 1
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
$ helm install my-release bitnami-azure/dataplatform-bp1
Introduction
Enterprise applications increasingly rely on large amounts of data, that needs be distributed, processed, and stored. Open source and commercial supported software stacks are available to implement a data platform, that can offer common data management services, accelerating the development and deployment of data hungry business applications.
This Helm chart enables the fully automated Kubernetes deployment of such multi-stack data platform, covering the following software components:
- Apache Kafka - Data distribution bus with buffering capabilities
- Apache Spark - In-memory data analytics
- Solr - Data persistence and search
- Data Platform Signature State Controller - Kubernetes controller that emits data platform health and state metrics in Prometheus format.
These containerized stateful software stacks are deployed in multi-node cluster configurations, which is defined by the Helm chart blueprint for this data platform deployment, covering:
- Pod placement rules - Affinity rules to ensure placement diversity to prevent single point of failures and optimize load distribution
- Pod resource sizing rules - Optimized Pod and JVM sizing settings for optimal performance and efficient resource usage
- Default settings to ensure Pod access security
- Optional Tanzu Observability framework configuration
In addition to the Pod resource optimizations, this blueprint is validated and tested to provide Kubernetes node count and sizing recommendations (see Kubernetes Cluster Requirements) to facilitate cloud platform capacity planning. The goal is optimize the number of required Kubernetes nodes in order to optimize server resource usage and, at the same time, ensuring runtime and resource diversity.
This blueprint, in its default configuration, deploys the data platform, on a Kubernetes cluster with three worker nodes. Use cases for this data platform setup include: data and application evaluation, development, and functional testing.
This chart bootstraps Data Platform Blueprint-1 deployment on a Kubernetes cluster using the Helm package manager.
Once the chart is installed, the deployed data platform cluster comprises of:
- Zookeeper with 3 nodes to be used for both Kafka and Solr
- Kafka with 3 nodes using the zookeeper deployed above
- Solr with 2 nodes using the zookeeper deployed above
- Spark with 1 Master and 2 worker nodes
- Data Platform Metrics emitter and Prometheus exporter
The data platform can be optionally deployed with the Tanzu observability framework. In that case, the wavefront collectors will be set up as a DaemonSet to collect the Kubernetes cluster metrics to enable runtime feed into the Tanzu Observability service.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
Kubernetes Cluster requirements
Below are the minimum Kubernetes Cluster requirements for "Small" size data platform:
| Data Platform Size | Kubernetes Cluster Size | Usage |
|---|---|---|
| Small | 1 Master Node (2 CPU, 4Gi Memory) 3 Worker Nodes (4 CPU, 32Gi Memory) | Data and application evaluation, development, and functional testing |
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
$ helm install my-release bitnami-azure/dataplatform-bp1
These commands deploy Data Platform on the Kubernetes cluster in the default configuration. The Parameters section lists recommended configurations of the parameters to bring up an optimal and resilient data platform. Please refer the individual charts for the remaining set of configurable parameters.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
Data Platform Chart parameters
| Name | Description | Value |
|---|---|---|
dataplatform.serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
dataplatform.serviceAccount.name | The name of the ServiceAccount to create | "" |
dataplatform.serviceAccount.automountServiceAccountToken | Allows auto mount of ServiceAccountToken on the serviceAccount created | true |
dataplatform.rbac.create | Whether to create & use RBAC resources or not | true |
dataplatform.exporter.enabled | Start a prometheus exporter | true |
dataplatform.exporter.image.registry | dataplatform exporter image registry | docker.io |
dataplatform.exporter.image.repository | dataplatform exporter image repository | bitnami/dataplatform-exporter |
dataplatform.exporter.image.tag | dataplatform exporter image tag (immutable tags are recommended) | 1.0.1-scratch-r27 |
dataplatform.exporter.image.pullPolicy | dataplatform exporter image pull policy | IfNotPresent |
dataplatform.exporter.image.pullSecrets | Specify docker-registry secret names as an array | [] |
dataplatform.exporter.config | Data Platform Metrics Configuration emitted in Prometheus format | "" |
dataplatform.exporter.livenessProbe.enabled | Enable livenessProbe | true |
dataplatform.exporter.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 10 |
dataplatform.exporter.livenessProbe.periodSeconds | Period seconds for livenessProbe | 5 |
dataplatform.exporter.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 15 |
dataplatform.exporter.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 15 |
dataplatform.exporter.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
dataplatform.exporter.readinessProbe.enabled | Enable readinessProbe | true |
dataplatform.exporter.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 10 |
dataplatform.exporter.readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
dataplatform.exporter.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 15 |
dataplatform.exporter.readinessProbe.failureThreshold | Failure threshold for readinessProbe | 15 |
dataplatform.exporter.readinessProbe.successThreshold | Success threshold for readinessProbe | 15 |
dataplatform.exporter.startupProbe.enabled | Enable startupProbe | false |
dataplatform.exporter.startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 10 |
dataplatform.exporter.startupProbe.periodSeconds | Period seconds for startupProbe | 5 |
dataplatform.exporter.startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 15 |
dataplatform.exporter.startupProbe.failureThreshold | Failure threshold for startupProbe | 15 |
dataplatform.exporter.startupProbe.successThreshold | Success threshold for startupProbe | 15 |
dataplatform.exporter.containerPorts.http | Data Platform Prometheus exporter port | 9090 |
dataplatform.exporter.priorityClassName | exporter priorityClassName | "" |
dataplatform.exporter.command | Override Data Platform Exporter entrypoint string. | [] |
dataplatform.exporter.args | Arguments for the provided command if needed | [] |
dataplatform.exporter.resources.limits | The resources limits for the container |
Deploy dataplatform-bp1 with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dataplatform-bp1 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 chartdataplatform-bp1 is pinned at v12.0.0 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