Skip to content

[SPARK-57350] Enable spark.kubernetes.executor.useDriverPodIP by default#702

Closed
dongjoon-hyun wants to merge 1 commit into
apache:mainfrom
dongjoon-hyun:SPARK-57350
Closed

[SPARK-57350] Enable spark.kubernetes.executor.useDriverPodIP by default#702
dongjoon-hyun wants to merge 1 commit into
apache:mainfrom
dongjoon-hyun:SPARK-57350

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented Jun 9, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR sets spark.kubernetes.executor.useDriverPodIP to true by default via
setIfMissing in SparkAppSubmissionWorker#buildDriverConf, next to the other
operator-injected defaults. Since it uses setIfMissing, an explicit value in the
application spec is always respected.

Why are the changes needed?

spark.kubernetes.executor.useDriverPodIP (added in Spark 4.1.0 via SPARK-53944) makes
executor pods connect to the driver using the driver pod IP instead of the driver
Service hostname, bypassing Kubernetes DNS. The operator fully manages the driver pod
lifecycle, 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.

Does this PR introduce any user-facing change?

Yes. When spark.kubernetes.executor.useDriverPodIP is unset, the operator now defaults
it to true (previously Spark's default of false). Applications that set it explicitly
are 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)

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you, @peter-toth !

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you, @viirya !

@dongjoon-hyun dongjoon-hyun added this to the 1.0.0 milestone Jun 9, 2026
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Merged to main

@dongjoon-hyun dongjoon-hyun deleted the SPARK-57350 branch June 9, 2026 18:49
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 this pull request may close these issues.

3 participants