<#6085 [FEAT] add driverPod/executorPod in Spark> ...
# flyte-github
c
#6085 [FEAT] add driverPod/executorPod in Spark Pull request opened by machichima Tracking issue #4105 Why are the changes needed? Enable setting K8sPod separately for Spark Driver and Executor pods. What changes were proposed in this pull request? Add driverPod and executorPod field with type K8sPod in SparkJob. Uses existing
mergePodSpecs
to merge default podSpec with our driverPod or executorPod. How was this patch tested? Unit tests I extended the existing Spark unit test
TestBuildResourceContainer
and
TestBuildResourcePodTemplate
and create a new test named
TestBuildResourceCustomK8SPod
for testing. Test with my_spark example See flyteorg/flytekit#3016 Setup process Screenshots Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs flyteorg/flytekit#3016 Docs link Summary by Bito This PR enhances Spark task configuration by introducing separate driver and executor pod specifications through new SparkJob message fields. The implementation adds support for customizing Kubernetes pod configurations independently for Spark driver and executor components, including tolerations, environment variables, and other pod settings. The changes encompass protobuf definitions with generated code for multiple languages and improvements to pod helper functions. Unit tests added: True Estimated effort to review (1-5, lower is better): 4 flyteorg/flyte