-
Notifications
You must be signed in to change notification settings - Fork 0
/
spark-master-deployment.yaml
47 lines (47 loc) · 1.16 KB
/
spark-master-deployment.yaml
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
44
45
46
47
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert --volumes hostPath
kompose.version: 1.26.1 (HEAD)
creationTimestamp: null
labels:
io.kompose.service: spark-master
name: spark-master
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: spark-master
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert --volumes hostPath
kompose.version: 1.26.1 (HEAD)
creationTimestamp: null
labels:
io.kompose.service: spark-master
spec:
containers:
- env:
- name: SPARK_LOCAL_IP
value: 127.0.0.1
- name: SPARK_WORKLOAD
value: master
image: spark-master
name: cluster-apache-spark
ports:
- containerPort: 8080
- containerPort: 7077
resources: {}
volumeMounts:
- mountPath: /opt/spark
name: spark
restartPolicy: Always
volumes:
- hostPath:
path: /Users/mrniu/Desktop/ospp-docker-niu/OSPP-piflow-docker
name: spark
status: {}