lot1-kickoff/airflow/dags/example_spark_kubernetes_op...

39 lines
866 B
YAML
Raw Normal View History

2024-03-09 18:09:15 +01:00
apiVersion: "sparkoperator.k8s.io/v1beta2"
kind: SparkApplication
metadata:
name: spark-pi
2024-03-09 18:47:08 +01:00
namespace: lot1-spark-jobs
2024-03-09 18:09:15 +01:00
spec:
type: Scala
2024-03-10 12:53:05 +01:00
mode: cluster
2024-03-09 18:09:15 +01:00
image: "apache/spark:v3.1.3"
imagePullPolicy: Always
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: "local:///opt/spark/examples/jars/spark-examples_2.12-3.1.3.jar"
sparkVersion: "3.1.3"
restartPolicy:
type: Never
volumes:
- name: "test-volume"
hostPath:
path: "/tmp"
type: Directory
driver:
cores: 1
coreLimit: "1200m"
memory: "512m"
labels:
version: 3.1.3
serviceAccount: spark
volumeMounts:
- name: "test-volume"
mountPath: "/tmp"
executor:
cores: 1
instances: 1
memory: "512m"
labels:
version: 3.1.3
volumeMounts:
- name: "test-volume"
mountPath: "/tmp"