2017-08-30 14:20:52 +08:00
|
|
|
kind: ReplicationController
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: spark-ui-proxy-controller
|
|
|
|
namespace: spark-cluster
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
component: spark-ui-proxy
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
component: spark-ui-proxy
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: spark-ui-proxy
|
2018-05-04 19:53:39 +08:00
|
|
|
image: harbor-001.jimmysong.io/library/spark-ui-proxy:1.0
|
2017-08-30 14:20:52 +08:00
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
args:
|
|
|
|
- spark-master:8080
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /
|
|
|
|
port: 80
|
|
|
|
initialDelaySeconds: 120
|
|
|
|
timeoutSeconds: 5
|