Skip to content
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

set securityContext on each driver and pod #1024

Closed
cometta opened this issue May 21, 2024 · 1 comment · Fixed by #1026
Closed

set securityContext on each driver and pod #1024

cometta opened this issue May 21, 2024 · 1 comment · Fixed by #1026

Comments

@cometta
Copy link
Contributor

cometta commented May 21, 2024

May i know is it possible to customize security Context for each driver and pod spun up by lighter? i use below on lighter session config, but does not work

"spark.kubernetes.driver.podTemplateFile": "s3a://buckert/pod_template.yml",
"spark.kubernetes.executor.podTemplateFile": "s3a://bucket/pod_template.yml",
@pdambrauskas
Copy link
Collaborator

We always override those to

"spark.kubernetes.driver.podTemplateFile": "/home/app/k8s/driver_pod_template.yaml",
"spark.kubernetes.executor.podTemplateFile": "/home/app/k8s/executor_pod_template.yaml",

We'll try make those configurable on next Lighter release.

As a workaround you can create a configmap for those files and mount them to the /home/app/k8s/ path on your lighter pods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants