kind: ReplicationController
apiVersion: v1
metadata:
  name: spark-worker-controller
  labels:
    heritage: helm
    provider: spark
spec:
  replicas: ${SPARK_WORKER_REPLICAS}
  selector:
    component: spark-worker
  template:
    metadata:
      labels:
        component: spark-worker
    spec:
      containers:
        - name: spark-worker
          image: gcr.io/google_containers/spark:1.5.1_v3
          command: ["/start-worker"]
          ports:
            - containerPort: 8081
          resources:
            requests:
              cpu: 100m

