mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
Updating Spark Example.
Few usability improvements: - Added a proxy to enable viewing worker logs - Removed seperate webui service - Modified Zeppelin and spark-ui services to be Loadbalancers - Changed pyspark example to be platform agnostic - Improved kubectl context setup - Minor grammar/flow fixes
This commit is contained in:
30
examples/spark/spark-ui-proxy-controller.yaml
Normal file
30
examples/spark/spark-ui-proxy-controller.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
image: elsonrodriguez/spark-ui-proxy:1.0
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
args:
|
||||
- spark-master:8080
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 120
|
||||
timeoutSeconds: 5
|
Reference in New Issue
Block a user