krystian-git commented on issue #55561:
URL: https://github.com/apache/airflow/issues/55561#issuecomment-3767056876

   Hi, how would you intercept workload and save to file, to maybe use 
--json-path instead of --json-load in SparkSubmitOperator subclass, which uses 
"pod_overeride" to setup some settings, like:
   ```self.executor_config = {
               "pod_override": k8s.V1Pod(
                   metadata=k8s.V1ObjectMeta(labels={"spark-role": "driver"}),
                   spec=k8s.V1PodSpec(
                       
init_containers=[self._build_init_container_spec(pod_env)],
                       containers=[
                           k8s.V1Container(
                               name="base",
                               env=pod_env,
                               image=self.image,
                               image_pull_policy="IfNotPresent",
                               resources=k8s.V1ResourceRequirements(
                                   limits={
                                       "cpu": str(driver_cores),
                                       "memory": "32Gi",
                                   },
                                   requests={
                                       "cpu": str(driver_cores),
                                       "memory": driver_memory.to_k8s_spec(),
                                   },
                               ),
                               security_context=k8s.V1SecurityContext(
                                   run_as_user=1001,
                                   run_as_group=1000,
                               ),
                           ),
                       ],
                   ),
               ),
           }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to