kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[BUG] KB_POD_FQDN does not include cluster domain

Open loomts opened this issue 7 months ago • 1 comments

Describe the bug

As the k8s doc said, pod DNS can be the structure of FQDN like hostName+serviceName+namespace+clusterDomain.

And in KB implementation, the service of instanceset is "headless service", pod FQDN should be something like <hostname>.<serviceName>-headless.<namespace>.svc<clusterDomain>.

However, the environment variable KB_POD_FQDN, KB_LEADER_POD_FQDN, KB_SWITCHOVER_CANDIDATE_FQDN and HEADLESS_SVC_FQDN do not include cluster domain right now, maybe need to modify them and change api docs and usage of addons.

Screenshots image

loomts avatar Jul 26 '24 06:07 loomts