Files
deprecated-helm-charts/incubator/sparkoperator
Richard LanderandKubernetes Prow Robot 4626b8c268 [incubator/sparkoperator] Add missing namespaces for spark operator resources (#14964)
* Add namespace to spark operator resource templates

The namespace is currently missing from the operator resources so an
install leads to a crashlooping operator because the clusterrolebinding
doesn't bind to the operator's service account.  Also the operator
doesn't get installed in the namespace that you pass with the
`--namespace` flag.

Signed-off-by: Richard Lander <landerr@vmware.com>

* Bump spark operator chart version

Signed-off-by: Richard Lander <landerr@vmware.com>
2019-06-21 12:02:14 -07:00
..

Helm Chart for Spark Operator

This is the Helm chart for the Kubernetes Operator for Apache Spark.

Prerequisites

The Operator requires Kubernetes version 1.8 and above because it relies on garbage collection of custom resources. If customization of driver and executor pods (through mounting custom ConfigMaps and volumes) is desired, then the Mutating Admission Webhook needs to be enabled and it only became beta in Kubernetes 1.9.

Installing the chart

The chart can be installed by running:

$ helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator
$ helm install incubator/sparkoperator --namespace spark-operator --set sparkJobNamespace=default

Note that you need to use the --namespace flag during helm install to specify in which namespace you want to install the operator. The namespace can be existing or not. When it's not available, Helm would take care of creating the namespace. Note that this namespace has no relation to the namespace where you would like to deploy Spark jobs (i.e. the setting sparkJobNamespace shown in the table below). They can be the same namespace or different ones.

Configuration

The following table lists the configurable parameters of the Spark operator chart and their default values.

Parameter Description Default
operatorImageName The name of the operator image gcr.io/spark-operator/spark-operator
operatorVersion The version of the operator to install v2.4.0-v1beta1-0.8.1
imagePullPolicy Docker image pull policy IfNotPresent
sparkJobNamespace K8s namespace where Spark jobs are to be deployed ``
enableWebhook Whether to enable mutating admission webhook false
enableMetrics Whether to expose metrics to be scraped by Premetheus true
controllerThreads Number of worker threads used by the SparkApplication controller 10
ingressUrlFormat Ingress URL format ""
logLevel Logging verbosity level 2
installCrds Whether to install CRDs true
metricsPort Port for the metrics endpoint 10254
metricsEndpoint Metrics endpoint "/metrics"
metricsPrefix Prefix for the metrics ""
resyncInterval Informer resync interval in seconds 30
webhookPort Service port of the webhook server 8080

Specify each parameter using the --set key=value[,key=value] argument to helm install.