-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspark-with-configmap.yaml
More file actions
43 lines (43 loc) · 982 Bytes
/
spark-with-configmap.yaml
File metadata and controls
43 lines (43 loc) · 982 Bytes
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/v1beta2"
kind: SparkApplication
metadata:
name: "spark-with-configmap"
namespace: default
spec:
type: Python
mode: cluster
pythonVersion: "3"
image: "gcr.io/spark-operator/spark-py:v3.1.1"
imagePullPolicy: Always
mainApplicationFile: local:///tmp/spark/pi.py
sparkVersion: "3.1.1"
restartPolicy:
type: OnFailure
onFailureRetries: 3
onFailureRetryInterval: 10
onSubmissionFailureRetries: 5
onSubmissionFailureRetryInterval: 20
driver:
cores: 1
coreLimit: "1200m"
memory: "512m"
labels:
version: 3.1.1
annotations:
sidecar.istio.io/inject: “false”
serviceAccount: spark
configMaps:
- name: demo-spark-job
path: /tmp/spark
executor:
cores: 1
instances: 1
memory: "512m"
labels:
version: 3.1.1
annotations:
sidecar.istio.io/inject: “false”
configMaps:
- name: demo-spark-job
path: /tmp/spark