2017-08-30 14:19:17 +08:00
|
|
|
kind: ReplicationController
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: spark-master-controller
|
|
|
|
namespace: spark-cluster
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
component: spark-master
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
component: spark-master
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: spark-master
|
2018-05-04 19:48:54 +08:00
|
|
|
image: harbor-001.jimmysong.io/library/spark:1.5.2_v1
|
2017-08-30 14:19:17 +08:00
|
|
|
command: ["/start-master"]
|
|
|
|
ports:
|
|
|
|
- containerPort: 7077
|
|
|
|
- containerPort: 8080
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|