# How to deploy Yugabyte if cluster has domain name?

**URL:** <https://forum.yugabyte.com/t/how-to-deploy-yugabyte-if-cluster-has-domain-name/1211>\
**Category:** General\
**Created:** [September 18, 2021, 7:46am UTC](https://forum.yugabyte.com/t/how-to-deploy-yugabyte-if-cluster-has-domain-name/1211 "2021-09-18T07:46:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hongbo-Miao](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/hongbo-miao/32/554_2.png) [@Hongbo-Miao](https://forum.yugabyte.com/u/Hongbo-Miao)\
**Post date:** [September 18, 2021, 7:46am UTC](https://forum.yugabyte.com/t/how-to-deploy-yugabyte-if-cluster-has-domain-name/1211/1 "2021-09-18T07:46:21Z")

</div>

I originally posted at [GitHub here](https://github.com/yugabyte/yugabyte-operator/issues/38) regarding how to deploy Yugabyte if cluster has domain name.

(Has details about how to reproduce inside the ticket)

I am wondering do we currently support

```auto
    gflags:
      - key: cluster-domain
        value: "k8s.my-domain.com”

```

if not, is there any workaround way?

I actually also asked another question at Stack Overflow about [how to redirect traffic from .svc.cluster.local to .svc.k8s.my-domain.com in Kubernetes](https://stackoverflow.com/questions/69213184/how-to-redirect-traffic-from-svc-cluster-local-to-svc-k8s-my-domain-com-in-kub) as I really hope to build POC to show how awesome Yugabyte it is to our team. 😃

Thanks!

---

<div class="post-metadata">

**Author:** ![srinivasa-vasu](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/srinivasa-vasu/32/350_2.png) [@srinivasa-vasu](https://forum.yugabyte.com/u/srinivasa-vasu)\
**Post date:** [September 19, 2021, 4:01am UTC](https://forum.yugabyte.com/t/how-to-deploy-yugabyte-if-cluster-has-domain-name/1211/2 "2021-09-19T04:01:43Z")

</div>

Hi,

Unfortunately you can’t override the domain name via operator installation unless you change the generated statefulset manifest (to replace the default cluster.local with your custom domain). However other alternative is to use our helm chart that supports overriding the domain name (if that’s an option)  
[https://github.com/yugabyte/charts/blob/ac33d27a432f8d0916cc994f7df29ea88281a381/stable/yugabyte/values.yaml#L68](https://github.com/yugabyte/charts/blob/ac33d27a432f8d0916cc994f7df29ea88281a381/stable/yugabyte/values.yaml#L68)

---

<div class="post-metadata">

**Author:** ![Hongbo-Miao](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/hongbo-miao/32/554_2.png) [@Hongbo-Miao](https://forum.yugabyte.com/u/Hongbo-Miao)\
**Post date:** [September 24, 2021, 9:23pm UTC](https://forum.yugabyte.com/t/how-to-deploy-yugabyte-if-cluster-has-domain-name/1211/3 "2021-09-24T21:23:49Z")

</div>

Just add an update, Alan helped by this pull request [Issue updates by ajcaldera1 · Pull Request #42 · yugabyte/yugabyte-operator · GitHub](https://github.com/yugabyte/yugabyte-operator/pull/42)

Now it works by adding

```auto
apiVersion: yugabyte.com/v1alpha1
kind: YBCluster
spec:
  domain: k8s.my-domain.com # <- add this line

```

😃
