8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
35 lines
844 B
YAML
35 lines
844 B
YAML
kind: ReplicationController
|
|
apiVersion: v1
|
|
metadata:
|
|
name: spark-gluster-worker-controller
|
|
namespace: spark-cluster
|
|
labels:
|
|
component: spark-worker
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
component: spark-worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
component: spark-worker
|
|
uses: spark-master
|
|
spec:
|
|
containers:
|
|
- name: spark-worker
|
|
image: gcr.io/google_containers/spark:1.5.2_v1
|
|
command: ["/start-worker"]
|
|
ports:
|
|
- containerPort: 8888
|
|
volumeMounts:
|
|
- mountPath: /mnt/glusterfs
|
|
name: glusterfsvol
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
volumes:
|
|
- name: glusterfsvol
|
|
glusterfs:
|
|
endpoints: glusterfs-cluster
|
|
path: MyVolume
|
|
readOnly: false
|