25 lines
521 B
YAML
25 lines
521 B
YAML
kind: ReplicationController
|
|
apiVersion: v1
|
|
metadata:
|
|
name: spark-worker-controller
|
|
namespace: spark-cluster
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
component: spark-worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
component: spark-worker
|
|
spec:
|
|
containers:
|
|
- name: spark-worker
|
|
image: harbor-001.jimmysong.io/library/spark:1.5.2_v1
|
|
command: ["/start-worker"]
|
|
ports:
|
|
- containerPort: 8081
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
|