dataplatform-bp1

by joaquinito2051

Helm chartv12.0.0App 1.0.1

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:

  1. Zookeeper with 3 nodes to be used for both Kafka and Solr
  2. Kafka with 3 nodes using the zookeeper deployed above
  3. Solr with 2 nodes using the zookeeper deployed above
  4. Spark with 1 Master and 2 worker nodes
  5. 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 SizeKubernetes Cluster SizeUsage
Small1 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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]

Data Platform Chart parameters

NameDescriptionValue
dataplatform.serviceAccount.createSpecifies whether a ServiceAccount should be createdtrue
dataplatform.serviceAccount.nameThe name of the ServiceAccount to create""
dataplatform.serviceAccount.automountServiceAccountTokenAllows auto mount of ServiceAccountToken on the serviceAccount createdtrue
dataplatform.rbac.createWhether to create & use RBAC resources or nottrue
dataplatform.exporter.enabledStart a prometheus exportertrue
dataplatform.exporter.image.registrydataplatform exporter image registrydocker.io
dataplatform.exporter.image.repositorydataplatform exporter image repositorybitnami/dataplatform-exporter
dataplatform.exporter.image.tagdataplatform exporter image tag (immutable tags are recommended)1.0.1-scratch-r27
dataplatform.exporter.image.pullPolicydataplatform exporter image pull policyIfNotPresent
dataplatform.exporter.image.pullSecretsSpecify docker-registry secret names as an array[]
dataplatform.exporter.configData Platform Metrics Configuration emitted in Prometheus format""
dataplatform.exporter.livenessProbe.enabledEnable livenessProbetrue
dataplatform.exporter.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe10
dataplatform.exporter.livenessProbe.periodSecondsPeriod seconds for livenessProbe5
dataplatform.exporter.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe15
dataplatform.exporter.livenessProbe.failureThresholdFailure threshold for livenessProbe15
dataplatform.exporter.livenessProbe.successThresholdSuccess threshold for livenessProbe1
dataplatform.exporter.readinessProbe.enabledEnable readinessProbetrue
dataplatform.exporter.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe10
dataplatform.exporter.readinessProbe.periodSecondsPeriod seconds for readinessProbe5
dataplatform.exporter.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe15
dataplatform.exporter.readinessProbe.failureThresholdFailure threshold for readinessProbe15
dataplatform.exporter.readinessProbe.successThresholdSuccess threshold for readinessProbe15
dataplatform.exporter.startupProbe.enabledEnable startupProbefalse
dataplatform.exporter.startupProbe.initialDelaySecondsInitial delay seconds for startupProbe10
dataplatform.exporter.startupProbe.periodSecondsPeriod seconds for startupProbe5
dataplatform.exporter.startupProbe.timeoutSecondsTimeout seconds for startupProbe15
dataplatform.exporter.startupProbe.failureThresholdFailure threshold for startupProbe15
dataplatform.exporter.startupProbe.successThresholdSuccess threshold for startupProbe15
dataplatform.exporter.containerPorts.httpData Platform Prometheus exporter port9090
dataplatform.exporter.priorityClassNameexporter priorityClassName""
dataplatform.exporter.commandOverride Data Platform Exporter entrypoint string.[]
dataplatform.exporter.argsArguments for the provided command if needed[]
dataplatform.exporter.resources.limitsThe 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdataplatform-bp1 is pinned at v12.0.0 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