You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deploy/helm/spark-k8s-operator/crds/crds.yaml
+18-25Lines changed: 18 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1117,13 +1117,6 @@ spec:
1117
1117
spec:
1118
1118
description: A Spark cluster history server component. This resource is managed by the Stackable operator for Apache Spark. Find more information on how to use it in the [operator documentation](https://docs.stackable.tech/home/nightly/spark-k8s/usage-guide/history-server).
1119
1119
properties:
1120
-
clusterConfig:
1121
-
default: {}
1122
-
description: |-
1123
-
Global Spark history server configuration that applies to all roles.
1124
-
1125
-
This was previously used to hold the listener configuration, which has since moved to the role configuration.
1126
-
type: object
1127
1120
image:
1128
1121
anyOf:
1129
1122
- required:
@@ -1379,9 +1372,6 @@ spec:
1379
1372
cleaner:
1380
1373
nullable: true
1381
1374
type: boolean
1382
-
listenerClass:
1383
-
nullable: true
1384
-
type: string
1385
1375
logging:
1386
1376
default:
1387
1377
containers: {}
@@ -1556,11 +1546,16 @@ spec:
1556
1546
x-kubernetes-preserve-unknown-fields: true
1557
1547
roleConfig:
1558
1548
default:
1549
+
listenerClass: cluster-internal
1559
1550
podDisruptionBudget:
1560
1551
enabled: true
1561
1552
maxUnavailable: null
1562
1553
description: This is a product-agnostic RoleConfig, which is sufficient for most of the products.
1563
1554
properties:
1555
+
listenerClass:
1556
+
default: cluster-internal
1557
+
description: This field controls which [ListenerClass](https://docs.stackable.tech/home/nightly/listener-operator/listenerclass.html) is used to expose the history server.
1558
+
type: string
1564
1559
podDisruptionBudget:
1565
1560
default:
1566
1561
enabled: true
@@ -1628,9 +1623,6 @@ spec:
1628
1623
cleaner:
1629
1624
nullable: true
1630
1625
type: boolean
1631
-
listenerClass:
1632
-
nullable: true
1633
-
type: string
1634
1626
logging:
1635
1627
default:
1636
1628
containers: {}
@@ -1868,13 +1860,6 @@ spec:
1868
1860
items:
1869
1861
type: string
1870
1862
type: array
1871
-
clusterConfig:
1872
-
default: {}
1873
-
description: |-
1874
-
Global Spark Connect server configuration that applies to all roles.
1875
-
1876
-
This was previously used to hold the listener configuration, which has since moved to the server configuration.
1877
-
type: object
1878
1863
clusterOperation:
1879
1864
default:
1880
1865
reconciliationPaused: false
@@ -2154,8 +2139,10 @@ spec:
2154
2139
type: string
2155
2140
type: object
2156
2141
server:
2142
+
default:
2143
+
roleConfig:
2144
+
listenerClass: cluster-internal
2157
2145
description: A Spark Connect server definition.
2158
-
nullable: true
2159
2146
properties:
2160
2147
cliOverrides:
2161
2148
additionalProperties:
@@ -2165,10 +2152,6 @@ spec:
2165
2152
config:
2166
2153
default: {}
2167
2154
properties:
2168
-
listenerClass:
2169
-
description: This field controls which [ListenerClass](https://docs.stackable.tech/home/nightly/listener-operator/listenerclass.html) is used to expose the Spark services.
2170
-
nullable: true
2171
-
type: string
2172
2155
logging:
2173
2156
default:
2174
2157
containers: {}
@@ -2341,6 +2324,16 @@ spec:
2341
2324
description: In the `podOverrides` property you can define a [PodTemplateSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) to override any property that can be set on a Kubernetes Pod. Read the [Pod overrides documentation](https://docs.stackable.tech/home/nightly/concepts/overrides#pod-overrides) for more information.
2342
2325
type: object
2343
2326
x-kubernetes-preserve-unknown-fields: true
2327
+
roleConfig:
2328
+
default:
2329
+
listenerClass: cluster-internal
2330
+
description: Global role config settings for the Spark Connect Server.
2331
+
properties:
2332
+
listenerClass:
2333
+
default: cluster-internal
2334
+
description: This field controls which [ListenerClass](https://docs.stackable.tech/home/nightly/listener-operator/listenerclass.html) is used to expose the Spark Connect services.
2335
+
type: string
2336
+
type: object
2344
2337
type: object
2345
2338
vectorAggregatorConfigMapName:
2346
2339
description: Name of the Vector aggregator discovery ConfigMap. It must contain the key `ADDRESS` with the address of the Vector aggregator.
:description: Configure the Spark connect and history services exposure with listener classes: cluster-internal, external-unstable, or external-stable.
3
3
4
-
== History services
4
+
== Spark History services
5
5
6
-
The operator deploys a xref:listener-operator:listener.adoc[Listener] for each spark history pod.
7
-
The default is to only being accessible from within the Kubernetes cluster, but this can be changed by setting `.spec.nodes.config.listenerClass`:
6
+
The operator deploys a xref:listener-operator:listener.adoc[Listener] for each Spark History Server pod.
7
+
The default is to only being accessible from within the Kubernetes cluster, but this can be changed by setting `.spec.nodes.roleConfig.listenerClass`:
8
8
9
9
[source,yaml]
10
10
----
@@ -14,13 +14,28 @@ metadata:
14
14
name: spark-history
15
15
spec:
16
16
nodes:
17
-
config:
17
+
roleConfig:
18
18
listenerClass: external-unstable # <1>
19
19
----
20
20
<1> Specify one of `external-stable`, `external-unstable`, `cluster-internal` (the default setting is `cluster-internal`).
21
21
22
-
For the example above, the listener operator creates a service named `spark-history-node-default` where `spark-history` is the name of the SparkHistoryServer, `node` is the service role (the only service role available for history servers) and `default` is the role group.
22
+
For the example above, the listener operator creates a service named `spark-history-node` where `spark-history` is the name of the SparkHistoryServer and `node` is the service role (the only service role available for history servers).
23
23
24
-
== Connect services
24
+
== Spark Connect services
25
25
26
-
Connect pods can be exposed using listener classes in exactly tha same fashion as history servers.
26
+
Connect pods can be exposed using listener classes in exactly tha same fashion as History Servers (with the exception for the role):
27
+
28
+
[source,yaml]
29
+
----
30
+
apiVersion: spark.stackable.tech/v1alpha1
31
+
kind: SparkConnectServer
32
+
metadata:
33
+
name: spark-connect
34
+
spec:
35
+
servers:
36
+
roleConfig:
37
+
listenerClass: external-unstable # <1>
38
+
----
39
+
<1> Specify one of `external-stable`, `external-unstable`, `cluster-internal` (the default setting is `cluster-internal`).
40
+
41
+
For the example above, the listener operator creates a service named `spark-connect-server` where `spark-connect` is the name of the SparkConnectServer and `server` is the service role.
0 commit comments