spark

by bigdata-charts

Helm chartv6.1.10App 3.2.1Verified publisher

Apache Spark is a high-performance engine for large-scale computing tasks, such as data processing, machine learning and real-time data streaming. It includes APIs for Java, Python, Scala and R.

About this chart

Apache Spark packaged by Bitnami

Apache Spark is a high-performance engine for large-scale computing tasks, such as data processing, machine learning and real-time data streaming. It includes APIs for Java, Python, Scala and R.

Overview of Apache Spark

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/spark

Introduction

This chart bootstraps an Apache Spark deployment on a Kubernetes cluster using the Helm package manager.

Apache Spark includes APIs for Java, Python, Scala and R.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/spark

These commands deploy Apache Spark on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release statefulset:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release. Use the option --purge to delete all persistent volumes too.

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
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
namespaceOverrideString to fully override common.names.namespace""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

Spark parameters

NameDescriptionValue
image.registrySpark image registrydocker.io
image.repositorySpark image repositorybitnami/spark
image.tagSpark image tag (immutable tags are recommended)3.2.1-debian-11-r3
image.pullPolicySpark image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugEnable image debug modefalse
hostNetworkEnable HOST Networkfalse

Spark master parameters

NameDescriptionValue
master.existingConfigmapThe name of an existing ConfigMap with your custom configuration for master""
master.containerPorts.httpSpecify the port where the web interface will listen on the master over HTTP8080
master.containerPorts.httpsSpecify the port where the web interface will listen on the master over HTTPS8480
master.containerPorts.clusterSpecify the port where the master listens to communicate with workers7077
master.hostAliasesDeployment pod host aliases[]
master.extraContainerPortsSpecify the port where the running jobs inside the masters listens[]
master.daemonMemoryLimitSet the memory limit for the master daemon""
master.configOptionsUse a string to set the config options for in the form "-Dx=y"""
master.extraEnvVarsExtra environment variables to pass to the master container[]
master.extraEnvVarsCMName of existing ConfigMap containing extra env vars for master nodes""
master.extraEnvVarsSecretName of existing Secret containing extra env vars for master nodes""
master.podSecurityContext.enabledEnable security contexttrue
master.podSecurityContext.fsGroupSet master pod's Security Context Group ID1001
master.podSecurityContext.runAsUserSet master pod's Security Context User ID1001
master.podSecurityContext.runAsGroupSet master pod's Security Context Group ID0
master.podSecurityContext.seLinuxOptionsSet master pod's Security Context SELinux options{}
master.containerSecurityContext.enabledEnabled master containers' Security Contexttrue
master.containerSecurityContext.runAsUserSet master containers' Security Context runAsUser1001
master.containerSecurityContext.runAsNonRootSet master containers' Security Context runAsNonRoottrue
master.containerSecurityContext.readOnlyRootFilesystemSet master containers' Security Context runAsNonRootfalse
master.commandOverride default container command (useful when using custom images)[]
master.argsOverride default container args (useful when using custom images)[]
master.podAnnotationsAnnotations for pods in StatefulSet{}
master.podLabelsExtra labels for pods in StatefulSet{}
master.podAffinityPresetSpark master pod affinity preset. Ignored if master.affinity is set. Allowed values: soft or hard""
master.podAntiAffinityPresetSpark master pod anti-affinity preset. Ignored if master.affinity is set. Allowed values: soft or hardsoft
master.nodeAffinityPreset.typeSpark master node affinity preset type. Ignored if master.affinity is set. Allowed values: soft or hard""
master.nodeAffinityPreset.keySpark master node label key to match Ignored if master.affinity is set.""
master.nodeAffinityPreset.valuesSpark master node label values to match. Ignored if master.affinity is set.[]
master.affinitySpark master affinity for pod assignment{}
master.nodeSelectorSpark master node labels for pod assignment{}
master.tolerationsSpark master tolerations for pod assignment[]
master.updateStrategy.typeMaster statefulset strategy type.RollingUpdate
master.priorityClassNamemaster pods' priorityClassName""
master.topologySpreadConstraintsTopology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template[]
master.schedulerNameName of the k8s scheduler (other than default) for master pods""
master.terminationGracePeriodSecondsSeconds Redmine pod needs to terminate gracefully""
master.lifecycleHooksfor the master container(s) to automate configuration before or after startup{}
master.extraVolumesOptionally specify extra list of additional volumes for the master pod(s)[]
master.extraVolumeMountsOptionally specify extra list of additional volumeMounts for the master container(s)[]
master.resources.limitsThe resources limits for the container{}
master.resources.requestsThe requested resources for the container

Deploy spark with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has spark 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 chartspark is pinned at v6.1.10 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