# Configuring the Kubernetes cluster domain

> Configure Stackable operators to use a different cluster domain other than 'cluster.local'.

Stackable operators allow the configuration of a non-default cluster domain as described in [Customizing DNS Service](https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/) (and more in [DNS for Services and Pods](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/)).

The cluster domain can be configured using an environment variable `KUBERNETES_CLUSTER_DOMAIN` set on the operators. This environment variable can be configured via the helm values property `kubernetesClusterDomain` during the installation of the operators.

```
helm install <product>-operator stackable-stable/<product>-operator --set kubernetesClusterDomain="my.domain"
```

You can also specify a custom cluster domain with a trailing dot (`my.domain.` instead of `my.domain`) to reduce the number of DNS requests under certain conditions (see [https://github.com/stackabletech/issues/issues/656](https://github.com/stackabletech/issues/issues/656) for details). Note however that support for this is still considered experimental.

If the environment variable `KUBERNETES_CLUSTER_DOMAIN` (or the helm property `kubernetesClusterDomain`) are not set / overridden, the operator will default the cluster domain to `cluster.local`.
