Files
2026-01-12 02:45:50 +00:00

82 lines
2.1 KiB
YAML

#
# Copyright 2025 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/v1alpha1
kind: SparkConnect
metadata:
name: spark-connect
namespace: default
spec:
sparkVersion: 4.0.1
server:
template:
metadata:
labels:
key1: value1
key2: value2
annotations:
key3: value3
key4: value4
spec:
containers:
- name: spark-kubernetes-driver
image: docker.io/library/spark:4.0.1
imagePullPolicy: Always
resources:
requests:
cpu: 1
memory: 1Gi
limits:
cpu: 1
memory: 1Gi
serviceAccount: spark-operator-spark
securityContext:
capabilities:
drop:
- ALL
runAsGroup: 185
runAsUser: 185
runAsNonRoot: true
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
executor:
instances: 2
cores: 1
memory: 512m
template:
metadata:
labels:
key1: value1
key2: value2
annotations:
key3: value3
key4: value4
spec:
containers:
- name: spark-kubernetes-executor
image: docker.io/library/spark:4.0.1
imagePullPolicy: Always
securityContext:
capabilities:
drop:
- ALL
runAsGroup: 185
runAsUser: 185
runAsNonRoot: true
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault