forked from kubeflow/spark-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: spark application does not respect time to live seconds (kubeflo…
…w#2165) * Add time to live seconds example spark application Signed-off-by: Yi Chen <[email protected]> * fix: spark application does not respect time to live seconds Signed-off-by: Yi Chen <[email protected]> --------- Signed-off-by: Yi Chen <[email protected]>
- Loading branch information
Showing
3 changed files
with
95 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# Copyright 2024 The Kubeflow authors. | ||
# | ||
# Licensed 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 | ||
# | ||
# https://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: sparkoperator.k8s.io/v1beta2 | ||
kind: SparkApplication | ||
metadata: | ||
name: spark-pi-ttl | ||
namespace: default | ||
spec: | ||
type: Scala | ||
mode: cluster | ||
image: spark:3.5.2 | ||
imagePullPolicy: IfNotPresent | ||
mainClass: org.apache.spark.examples.SparkPi | ||
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples_2.12-3.5.2.jar | ||
sparkVersion: 3.5.2 | ||
timeToLiveSeconds: 30 | ||
driver: | ||
cores: 1 | ||
memory: 512m | ||
serviceAccount: spark-operator-spark | ||
executor: | ||
instances: 1 | ||
cores: 1 | ||
memory: 512m |
This file contains 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
This file contains 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