[SPARK-57350] Enable spark.kubernetes.executor.useDriverPodIP by default#702
Closed
dongjoon-hyun wants to merge 1 commit into
Closed
[SPARK-57350] Enable spark.kubernetes.executor.useDriverPodIP by default#702dongjoon-hyun wants to merge 1 commit into
spark.kubernetes.executor.useDriverPodIP by default#702dongjoon-hyun wants to merge 1 commit into
Conversation
peter-toth
approved these changes
Jun 9, 2026
Member
Author
|
Thank you, @peter-toth ! |
viirya
approved these changes
Jun 9, 2026
Member
Author
|
Thank you, @viirya ! |
Member
Author
|
Merged to main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR sets
spark.kubernetes.executor.useDriverPodIPtotrueby default viasetIfMissinginSparkAppSubmissionWorker#buildDriverConf, next to the otheroperator-injected defaults. Since it uses
setIfMissing, an explicit value in theapplication spec is always respected.
Why are the changes needed?
spark.kubernetes.executor.useDriverPodIP(added in Spark 4.1.0 via SPARK-53944) makesexecutor pods connect to the driver using the driver pod IP instead of the driver
Servicehostname, bypassing Kubernetes DNS. The operator fully manages the driver podlifecycle, and in cluster mode the driver is not restarted (the application terminates if
it dies), so the pod IP is stable for the application's lifetime. Enabling it by default
avoids DNS propagation delays/failures on executor startup and reduces CoreDNS load. It is
a no-op for Spark versions older than 4.1.0.
spark.kubernetes.executor.useDriverPodIPspark#52650Does this PR introduce any user-facing change?
Yes. When
spark.kubernetes.executor.useDriverPodIPis unset, the operator now defaultsit to
true(previously Spark's default offalse). Applications that set it explicitlyare unaffected.
How was this patch tested?
Pass the CIs.
Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.8)