-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample-deployment.yaml
More file actions
154 lines (154 loc) · 4.61 KB
/
example-deployment.yaml
File metadata and controls
154 lines (154 loc) · 4.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "5"
meta.helm.sh/release-name: spark-operator
meta.helm.sh/release-namespace: spark-operator
creationTimestamp: "2025-08-11T21:38:47Z"
generation: 5
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/instance: spark-operator
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: spark-operator
app.kubernetes.io/version: 2.3.0
helm.sh/chart: spark-operator-2.3.0
name: spark-operator-controller
namespace: spark-operator
resourceVersion: "84761"
uid: 4f4355cf-1907-4b1f-b9bb-5c8ab1a6c7d4
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/component: controller
app.kubernetes.io/instance: spark-operator
app.kubernetes.io/name: spark-operator
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "8080"
prometheus.io/scrape: "true"
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/instance: spark-operator
app.kubernetes.io/name: spark-operator
spec:
automountServiceAccountToken: true
containers:
- image: docker.io/library/native-submit-plugin:0813202502
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 9090
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: native-submit
ports:
- containerPort: 50051
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /readyz
port: 9090
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- controller
- start
- --zap-log-level=info
- --zap-encoder=console
- --namespaces=default
- --controller-threads=10
- --enable-ui-service=true
- --enable-metrics=true
- --metrics-bind-address=:8080
- --metrics-endpoint=/metrics
- --metrics-prefix=
- --metrics-labels=app_type
- --metrics-job-start-latency-buckets=30,60,90,120,150,180,210,240,270,300
- --leader-election=true
- --leader-election-lock-name=spark-operator-controller-lock
- --leader-election-lock-namespace=spark-operator
- --workqueue-ratelimiter-bucket-qps=50
- --workqueue-ratelimiter-bucket-size=500
- --workqueue-ratelimiter-max-delay=6h
- --driver-pod-creation-grace-period=10s
- --max-tracked-executor-per-app=1000
- --submitter-type=grpc
- --grpc-server-address=localhost:50051
- --grpc-submit-timeout=10s
image: docker.io/library/spark-operator:08112026
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8081
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: spark-operator-controller
ports:
- containerPort: 8080
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /readyz
port: 8081
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /tmp
name: tmp
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 185
serviceAccount: spark-operator-controller
serviceAccountName: spark-operator-controller
terminationGracePeriodSeconds: 30
volumes:
- emptyDir:
sizeLimit: 1Gi
name: tmp