spark
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.
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.
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 my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/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 my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/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
| 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 |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override common.names.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
initScripts | Dictionary of init scripts. Evaluated as a template. | {} |
initScriptsCM | ConfigMap with the init scripts. Evaluated as a template. | "" |
initScriptsSecret | Secret containing /docker-entrypoint-initdb.d scripts to be executed at initialization time that contain sensitive data. Evaluated as a template. | "" |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
Spark parameters
| Name | Description | Value |
|---|---|---|
image.registry | Spark image registry | docker.io |
image.repository | Spark image repository | bitnami/spark |
image.tag | Spark image tag (immutable tags are recommended) | 3.3.1-debian-11-r5 |
image.digest | Spark image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Spark image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Enable image debug mode | false |
hostNetwork | Enable HOST Network | false |
Spark master parameters
| Name | Description | Value |
|---|---|---|
master.existingConfigmap | The name of an existing ConfigMap with your custom configuration for master | "" |
master.containerPorts.http | Specify the port where the web interface will listen on the master over HTTP | 8080 |
master.containerPorts.https | Specify the port where the web interface will listen on the master over HTTPS | 8480 |
master.containerPorts.cluster | Specify the port where the master listens to communicate with workers | 7077 |
master.hostAliases | Deployment pod host aliases | [] |
master.extraContainerPorts | Specify the port where the running jobs inside the masters listens | [] |
master.daemonMemoryLimit | Set the memory limit for the master daemon | "" |
master.configOptions | Use a string to set the config options for in the form "-Dx=y" | "" |
master.extraEnvVars | Extra environment variables to pass to the master container | [] |
master.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars for master nodes | "" |
master.extraEnvVarsSecret | Name of existing Secret containing extra env vars for master nodes | "" |
master.podSecurityContext.enabled | Enable security context | true |
master.podSecurityContext.fsGroup | Set master pod's Security Context Group ID | 1001 |
master.podSecurityContext.runAsUser | Set master pod's Security Context User ID | 1001 |
master.podSecurityContext.runAsGroup | Set master pod's Security Context Group ID | 0 |
master.podSecurityContext.seLinuxOptions | Set master pod's Security Context SELinux options | {} |
master.containerSecurityContext.enabled | Enabled master containers' Security Context | true |
master.containerSecurityContext.runAsUser | Set master containers' Security Context runAsUser | 1001 |
master.containerSecurityContext.runAsNonRoot | Set master containers' Security Context runAsNonRoot | true |
master.containerSecurityContext.readOnlyRootFilesystem | Set master containers' Security Context runAsNonRoot | false |
master.command | Override default container command (useful when using custom images) | [] |
master.args | Override default container args (useful when using custom images) | [] |
master.podAnnotations | Annotations for pods in StatefulSet | {} |
master.podLabels | Extra labels for pods in StatefulSet | {} |
master.podAffinityPreset | Spark master pod affinity preset. Ignored if master.affinity is set. Allowed values: soft or hard | "" |
master.podAntiAffinityPreset | Spark master pod anti-affinity preset. Ignored if master.affinity is set. Allowed values: soft or hard | soft |
master.nodeAffinityPreset.type | Spark master node affinity preset type. Ignored if master.affinity is set. Allowed values: soft or hard | "" |
master.nodeAffinityPreset.key | Spark master node label key to match Ignored if master.affinity is set. | "" |
master.nodeAffinityPreset.values | Spark master node label values to match. Ignored if master.affinity is set. | [] |
master.affinity | Spark master affinity for pod assignment | {} |
master.nodeSelector | Spark master node |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartspark is pinned at v6.3.10 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