This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 5543de8  [SPARK-53912] Add `cluster-preview.yaml` and 
`spark-connect-server-preview.yaml`
5543de8 is described below

commit 5543de891274de75d9944434564c77751c67265c
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed Oct 15 08:01:09 2025 -0700

    [SPARK-53912] Add `cluster-preview.yaml` and 
`spark-connect-server-preview.yaml`
    
    ### What changes were proposed in this pull request?
    
    This PR aims to add two `Apache Spark 4.1.0-preview2`-based examples.
    - `cluster-preview.yaml`: `4.1.0-preview2`-based SparkCluster
    - `spark-connect-server-preview.yaml`: `4.1.0-preview2`-based Connect 
Server SparkApp.
    
    ### Why are the changes needed?
    
    This has two goals.
    1. Provide an easy way to access 4.1.0-preview2.
    2. Provide the example of `apache/spark:{{SPARK_VERSION}}`.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, these are new examples.
    
    ### How was this patch tested?
    
    Manual review.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #392 from dongjoon-hyun/SPARK-53912.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 examples/cluster-preview.yaml              | 32 ++++++++++++++++++++++++++++++
 examples/spark-connect-server-preview.yaml | 31 +++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/examples/cluster-preview.yaml b/examples/cluster-preview.yaml
new file mode 100644
index 0000000..7e94de5
--- /dev/null
+++ b/examples/cluster-preview.yaml
@@ -0,0 +1,32 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: spark.apache.org/v1
+kind: SparkCluster
+metadata:
+  name: cluster-preview
+spec:
+  runtimeVersions:
+    sparkVersion: "4.1.0-preview2"
+  clusterTolerations:
+    instanceConfig:
+      initWorkers: 3
+      minWorkers: 3
+      maxWorkers: 3
+  sparkConf:
+    spark.kubernetes.container.image: "apache/spark:{{SPARK_VERSION}}"
+    spark.master.ui.title: "Prod Spark Cluster"
+    spark.master.rest.enabled: "true"
+    spark.master.rest.host: "0.0.0.0"
+    spark.ui.reverseProxy: "true"
diff --git a/examples/spark-connect-server-preview.yaml 
b/examples/spark-connect-server-preview.yaml
new file mode 100644
index 0000000..d4cb934
--- /dev/null
+++ b/examples/spark-connect-server-preview.yaml
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: spark.apache.org/v1
+kind: SparkApplication
+metadata:
+  name: spark-connect-server-preview
+spec:
+  mainClass: "org.apache.spark.sql.connect.service.SparkConnectServer"
+  sparkConf:
+    spark.dynamicAllocation.enabled: "true"
+    spark.dynamicAllocation.shuffleTracking.enabled: "true"
+    spark.dynamicAllocation.minExecutors: "3"
+    spark.dynamicAllocation.maxExecutors: "3"
+    spark.kubernetes.authenticate.driver.serviceAccountName: "spark"
+    spark.kubernetes.container.image: "apache/spark:{{SPARK_VERSION}}"
+  applicationTolerations:
+    resourceRetainPolicy: OnFailure
+  runtimeVersions:
+    sparkVersion: "4.1.0-preview2"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to