mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 18:30:21 +00:00
35 lines
809 B
YAML
35 lines
809 B
YAML
|
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
|
||
|
image: gcr.io/google_containers/spark:1.5.2_v1
|
||
|
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
|