Skip to content

Commit ef71912

Browse files
committed
Adds missing KUBERNETES_CLUSTER_DOMAIN environment variable to docs
part of stackabletech/issues#668
1 parent 64e07b6 commit ef71912

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

docs/modules/spark-k8s/pages/reference/environment-variables.adoc

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,44 @@
22

33
This operator accepts the following environment variables:
44

5+
== KUBERNETES_CLUSTER_DOMAIN
6+
7+
*Default value*: cluster.local
8+
9+
*Required*: false
10+
11+
*Multiple values*: false
12+
13+
This instructs the operator, which value it should use for the Kubernetes `clusterDomain` setting.
14+
Make sure to keep this in sync with whatever setting your cluster uses.
15+
Please see the documentation xref:guides:kubernetes-cluster-domain.adoc[on configuring the Kubernetes cluster domain] for more information on this feature.
16+
17+
[source]
18+
----
19+
export KUBERNETES_CLUSTER_DOMAIN=mycluster.local
20+
cargo run -- run
21+
----
22+
23+
or via docker:
24+
25+
[source]
26+
----
27+
docker run \
28+
--name spark-k8s-operator \
29+
--network host \
30+
--env KUBECONFIG=/home/stackable/.kube/config \
31+
--env KUBERNETES_CLUSTER_DOMAIN=mycluster.local \
32+
--mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \
33+
docker.stackable.tech/stackable/spark-k8s-operator:latest
34+
----
35+
536
== WATCH_NAMESPACE
637

738
*Default value*: All namespaces
839

940
*Required*: false
1041

11-
*Multiple values:* false
42+
*Multiple values*: false
1243

1344
The operator **only** watches for resources in the provided namespace `test`:
1445

0 commit comments

Comments
 (0)