blob: f728f82eca2d4daae631e14ef1eb5522cbfc9365 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
apiVersion: "sparkoperator.k8s.io/v1beta1"
kind: SparkApplication
metadata:
name: {{ .Values.nameOfTheSparkApp }}
namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.programmingLanguageType }}
mode: {{ .Values.modeOfSparkApp | default "cluster" }}
image: {{ quote .Values.image }}
imagePullPolicy: {{ .Values.imagePullPolicy | default "IfNotPresent" }}
mainClass: {{ .Values.mainClassOfTheSparkApp }}
mainApplicationFile: {{ .Values.mainApplicationFileOfTheSparkApp }}
arguments:
{{- range .Values.argumentsOfTheSparkProgram }}
- {{ . }}
{{ end }}
hadoopConfigMap: {{ .Values.hadoopConfigMap }}
restartPolicy:
type: {{ .Values.restartPolicy | default "Never" }}
volumes:
- name: {{ quote .Values.volumesName | default "test-volume" }}
hostpath:
path: {{ quote .Values.hostpath | default "/tmp" }}
type: {{ .Values.hostpathType | default "Directory" }}
driver:
cores: {{ .Values.driverCores | default 0.1 }}
coreLimit: {{ quote .Values.driverCoreLimit | default "200m" }}
memory: {{ quote .Values.driverMemory | default "1024m" }}
labels:
version: 2.4.0
serviceAccount: spark
volumeMounts:
- name: {{ quote .Values.driverVolumeMountsName | default "test-volume" }}
mountPath: {{ quote .Values.driverVolumeMountPath | default "/tmp" }}
executor:
cores: {{ .Values.executorCores | default 1 }}
instances: {{ .Values.executorInstances | default 1 }}
memory: {{ quote .Values.executorMemory | default "512m" }}
labels:
version: 2.4.0
volumeMounts:
- name: {{ quote .Values.executorVolumeMountsName | default "test-volume" }}
mountPath: {{ quote .Values.executorVolumeMountPath | default "/tmp" }}
|