Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fa9b6f4

Browse files
committedOct 18, 2024··
review comments
1 parent e82c01f commit fa9b6f4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed
 

‎modules/guides/pages/kubernetes-cluster-domain.adoc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,27 @@ helm install hive-operator stackable-stable/hive-operator --set kubernetesCluste
2121

2222
=== Use auto detection
2323

24-
As a first step, the auto detection is checking the runtime environment of the operator. In most cases this is a clusterized environment like Kubernetes or Openshift.
24+
If the `KUBERNETES_CLUSTER_DOMAIN` environment variable is not set, the auto detection is checking the runtime environment of the operator.
25+
In most cases this is a clusterized environment like Kubernetes or Openshift.
2526
This is determined by checking if the `KUBERNETES_SERVICE_HOST` environment variable is set in the operator Pod.
2627

27-
If clusterized, the auto detection parses the `/etc/resolv.conf` file for the last entry starting with the `search` keyword. Within that `search` entry the shortest option is selected.
28+
If clusterized, the auto detection parses the `/etc/resolv.conf` file for the last entry starting with the `search` keyword.
29+
Within that `search` entry the shortest option is selected.
2830

29-
An example for the `/etc/resolv.conf` in a Kubelet looks like:
31+
An example `/etc/resolv.conf` in a Pod looks like:
3032

3133
```
3234
nameserver 10.32.0.10
3335
search <namespace>.svc.cluster.local svc.cluster.local cluster.local
3436
options ndots:5
3537
```
3638

37-
Using this example as a base for the cluster domain auto detection, the operator would choose the `cluster.local` option.
39+
Using this example as a base for the cluster domain auto detection, the operator would choose `cluster.local` as cluster domain.
3840

3941
=== Running locally
4042

41-
This section covers the case when both `KUBERNETES_CLUSTER_DOMAIN` and `KUBERNETES_SERVICE_HOST` are not set. This would be the case if the operator is not running in a clusterized environment like e.g. locally on a Laptop or PC.
43+
This section covers the case when both `KUBERNETES_CLUSTER_DOMAIN` and `KUBERNETES_SERVICE_HOST` are not set.
44+
This would be the case if the operator is not running in a clusterized environment like e.g. locally a Laptop or PC.
4245
Running the operator locally is mostly for development and therefore not relevant for most users.
4346

4447
If running locally, and `KUBERNETES_CLUSTER_DOMAIN` and `KUBERNETES_SERVICE_HOST` are not set, the operator will default its cluster domain to `cluster.local`.

0 commit comments

Comments
 (0)
Please sign in to comment.