2018-01-09 18:57:14 +00:00
|
|
|
kind: ReplicationController
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: spark-master-controller
|
|
|
|
namespace: spark-cluster
|
|
|
|
labels:
|
|
|
|
component: spark-master
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
component: spark-master
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
component: spark-master
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: spark-master
|
2018-03-06 22:33:18 +00:00
|
|
|
image: k8s.gcr.io/spark:1.5.2_v1
|
2018-01-09 18:57:14 +00:00
|
|
|
command: ["/start-master"]
|
|
|
|
ports:
|
|
|
|
- containerPort: 7077
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /mnt/glusterfs
|
|
|
|
name: glusterfsvol
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
volumes:
|
|
|
|
- name: glusterfsvol
|
|
|
|
glusterfs:
|
|
|
|
endpoints: glusterfs-cluster
|
|
|
|
path: MyVolume
|
|
|
|
readOnly: false
|