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
= History service exposition with listener classes
2
+
:description: Configure the Spark history service exposure with listener classes: cluster-internal, external-unstable, or external-stable.
2
3
3
-
The Spark operator deploys SparkApplications, and does not offer a UI or other API, so no services are exposed.
4
-
However, the operator can also deploy HistoryServers, which do offer a UI and API.
5
-
The operator deploys a service called `<name>-historyserver` (where `<name>` is the name of the spark application) through which the HistoryServer can be reached.
6
-
7
-
This service can have three different types: `cluster-internal`, `external-unstable` and `external-stable`.
8
-
Read more about the types in the xref:concepts:service-exposition.adoc[service exposition] documentation at platform level.
9
-
10
-
This is how the ListenerClass is configured:
4
+
The operator deploys a xref:listener-operator:listener.adoc[Listener] for each spark history pod.
5
+
The default is to only being accessible from within the Kubernetes cluster, but this can be changed by setting `.spec.clusterConfig.listenerClass`:
11
6
12
7
[source,yaml]
13
8
----
9
+
apiVersion: spark.stackable.tech/v1alpha1
10
+
kind: SparkHistoryServer
11
+
metadata:
12
+
name: spark-history
14
13
spec:
15
14
clusterConfig:
16
-
listenerClass: cluster-internal # <1>
15
+
listenerClass: external-unstable # <1>
17
16
----
18
-
<1> The default `cluster-internal` setting.
17
+
<1> Specify one of `external-stable`, `external-unstable`, `cluster-internal` (the default setting is `cluster-internal`).
18
+
19
+
For the example above, the listener operator creates a service named `spark-history-node-default-0-listener` 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.
0 commit comments