How to deploy Yugabyte if cluster has domain name?

I originally posted at GitHub here 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

    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 as I really hope to build POC to show how awesome Yugabyte it is to our team. :smiley:

Thanks!

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

1 Like

Just add an update, Alan helped by this pull request Issue updates by ajcaldera1 · Pull Request #42 · yugabyte/yugabyte-operator · GitHub

Now it works by adding

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

:smiley:

1 Like