ceph-csi/vendor/k8s.io/kubernetes/examples/spark/spark-worker-controller.yaml

24 lines
473 B
YAML
Raw Normal View History

2018-01-09 18:57:14 +00:00
kind: ReplicationController
apiVersion: v1
metadata:
name: spark-worker-controller
spec:
replicas: 2
selector:
component: spark-worker
template:
metadata:
labels:
component: spark-worker
spec:
containers:
- name: spark-worker
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-worker"]
ports:
- containerPort: 8081
resources:
requests:
cpu: 100m