k8s-manifests/spark/base/spark-worker-controller.yml

24 lines
478 B
YAML
Raw Permalink Normal View History

2024-06-28 10:57:08 +00:00
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