text
stringlengths
0
59.1k
- containerPort: 8080
resources:
requests:
cpu: 100m
<|endoftext|>
# source: k8s_examples/_archived/spark/zeppelin-controller.yaml type: yaml
kind: ReplicationController
apiVersion: v1
metadata:
name: zeppelin-controller
spec:
replicas: 1
selector:
component: zeppelin
template:
metadata:
labels:
component: zeppelin
spec:
containers:
- name: zeppelin
image: registry.k8s.io/zeppelin:v0.5.6_v1
ports:
- containerPort: 8080
resources:
requests:
cpu: 100m
<|endoftext|>
# source: k8s_examples/_archived/spark/zeppelin-service.yaml type: yaml
kind: Service
apiVersion: v1
metadata:
name: zeppelin
spec:
ports:
- port: 80
targetPort: 8080
selector:
component: zeppelin
type: LoadBalancer
<|endoftext|>
# source: k8s_examples/_archived/spark/spark-worker-controller.yaml type: yaml
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
image: registry.k8s.io/spark:1.5.2_v1
command: ["/start-worker"]
ports:
- containerPort: 8081
resources:
requests:
cpu: 100m
<|endoftext|>
# source: k8s_examples/_archived/spark/spark-ui-proxy-service.yaml type: yaml
kind: Service
apiVersion: v1
metadata:
name: spark-ui-proxy
spec:
ports:
- port: 80
targetPort: 80
selector:
component: spark-ui-proxy
type: LoadBalancer
<|endoftext|>
# source: k8s_examples/_archived/spark/README.md type: docs
# Spark example
Following this example, you will create a functional [Apache
Spark](http://spark.apache.org/) cluster using Kubernetes and
[Docker](http://docker.io).
You will setup a Spark master service and a set of Spark workers using Spark's [standalone mode](http://spark.apache.org/docs/latest/spark-standalone.html).
For the impatient expert, jump straight to the [tl;dr](#tldr)
section.
### Sources
The Docker images are heavily based on https://github.com/mattf/docker-spark.
And are curated in https://github.com/kubernetes/application-images/tree/master/spark