Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Oct 15, 2025

What changes were proposed in this pull request?

This PR aims to add StatefulSet-based SparkApp example.

Why are the changes needed?

To provide a StatefulSet example with spark.kubernetes.allocation.pods.allocator=statefulset.

Note that this requires the following is a part of v0.6.0.

Does this PR introduce any user-facing change?

No, this is a new example.

How was this patch tested?

Manual review.

$ kubectl apply -f examples/pi-statefulset.yaml
sparkapplication.spark.apache.org/pi-statefulset created
$ kubectl get sparkapp
NAME             CURRENT STATE    AGE
pi-statefulset   RunningHealthy   5s
$ kubectl get pod
NAME                                        READY   STATUS    RESTARTS   AGE
pi-statefulset-0-driver                     1/1     Running   0          7s
spark-kubernetes-operator-cdb4b547d-5bhfm   1/1     Running   0          80s
spark-s-pi-statefulset-0-0-0                1/1     Running   0          5s
spark-s-pi-statefulset-0-0-1                1/1     Running   0          5s
spark-s-pi-statefulset-0-0-2                1/1     Running   0          5s
$ kubectl get sparkapp
NAME             CURRENT STATE      AGE
pi-statefulset   ResourceReleased   48s

Was this patch authored or co-authored using generative AI tooling?

No.

@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya . Merged to main.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-53910 branch October 15, 2025 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants