-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does spark-operator support volumeDevices? #2378
Comments
@zzvara Yes, see examples here: |
In your example I only see |
@zzylydx You can use the pod template feature to customize |
In spark-submit, there is a configuration similar to the following, but spark-submit does not support mount ${SPARK_PATH}/bin/spark-submit \
--master k8s://https://$K8S_URL \
--deploy-mode cluster \
--name zzy-pyspark \
--conf spark.driver.cores=8 \
--conf spark.executor.cores=8 \
--conf spark.cores.max=16 \
--conf spark.executor.instances=7 \
--conf spark.kubernetes.container.image=$CONTAINER_IMAGE \
--conf spark.kubernetes.authenticate.driver.serviceAccountName=spark \
--conf spark.kubernetes.executor.deleteOnTermination=false \
--conf spark.kubernetes.driver.podTemplateFile=./driver-processed.yaml \
--conf spark.kubernetes.executor.podTemplateFile=./executor.yaml \
--conf spark.ssl.enabled=false \
--conf spark.executor.memory=16g \
--conf spark.driver.memory=8g \
--conf spark.file.transferTo=false \
--conf spark.kubernetes.driver.volumes.persistentVolumeClaim.spark-local-dir-1.options.claimName=OnDemand \
--conf spark.kubernetes.driver.volumes.persistentVolumeClaim.spark-local-dir-1.options.storageClass=nfs-client \
--conf spark.kubernetes.driver.volumes.persistentVolumeClaim.spark-local-dir-1.options.sizeLimit=20Gi \
--conf spark.kubernetes.driver.volumes.persistentVolumeClaim.spark-local-dir-1.mount.path=/data \
--conf spark.kubernetes.driver.volumes.persistentVolumeClaim.spark-local-dir-1.mount.readOnly=false \
--conf spark.kubernetes.executor.volumes.persistentVolumeClaim.spark-local-dir-1.options.claimName=OnDemand \
--conf spark.kubernetes.executor.volumes.persistentVolumeClaim.spark-local-dir-1.options.storageClass=nfs-client \
--conf spark.kubernetes.executor.volumes.persistentVolumeClaim.spark-local-dir-1.options.sizeLimit=20Gi \
--conf spark.kubernetes.executor.volumes.persistentVolumeClaim.spark-local-dir-1.mount.path=/data \
--conf spark.kubernetes.executor.volumes.persistentVolumeClaim.spark-local-dir-1.mount.readOnly=false \
--verbose \
local:/opt/spark/examples/src/main/python/transitive_closure.py |
What question do you want to ask?
Does spark-operator support volumeDevices?
Additional context
No response
Have the same question?
Give it a 👍 We prioritize the question with most 👍
The text was updated successfully, but these errors were encountered: