You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by jilani shaik <ji...@gmail.com> on 2025/01/02 19:41:16 UTC
spark k8s submit
Hi,
I am trying to run Spark on the Kubernetes cluster, but that cluster has
certain validation to deploy any pod that is not allowing me to run my
Spark submit.
for example, I need to add liveness, readiness probes and certain security
capability restrictions, which we usually do for all outer pods via yaml
file.
not sure how to get that in Spark submit k8s. I tried the driver and
executor template file, but it's not working. at the same time, I do not
have a sample template file from the documentation except below lines
--conf spark.kubernetes.driver.podTemplateFile=s3a://bucket/driver.yml
--conf spark.kubernetes.executor.podTemplateFile=s3a://bucket/executor.yml
Thanks,
Jilani
Re: spark k8s submit
Posted by Mat Schaffer <ma...@roblox.com.INVALID>.
This should work. We use the same setting to specify pod volume
configurations.
On Thu, Jan 2, 2025 at 11:41 AM jilani shaik <ji...@gmail.com> wrote:
> Hi,
>
> I am trying to run Spark on the Kubernetes cluster, but that cluster has
> certain validation to deploy any pod that is not allowing me to run my
> Spark submit.
>
> for example, I need to add liveness, readiness probes and certain security
> capability restrictions, which we usually do for all outer pods via yaml
> file.
>
> not sure how to get that in Spark submit k8s. I tried the driver and
> executor template file, but it's not working. at the same time, I do not
> have a sample template file from the documentation except below lines
>
> --conf spark.kubernetes.driver.podTemplateFile=s3a://bucket/driver.yml
> --conf spark.kubernetes.executor.podTemplateFile=s3a://bucket/executor.yml
>
>
> Thanks,
> Jilani
>