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
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.
25
26
This is determined by checking if the `KUBERNETES_SERVICE_HOST` environment variable is set in the operator Pod.
26
27
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.
28
30
29
-
An example for the `/etc/resolv.conf` in a Kubelet looks like:
31
+
An example `/etc/resolv.conf` in a Pod looks like:
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.
38
40
39
41
=== Running locally
40
42
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.
42
45
Running the operator locally is mostly for development and therefore not relevant for most users.
43
46
44
47
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