bitwalker / libcluster

Automatic cluster formation/healing for Elixir applications
MIT License
1.97k stars 188 forks source link

How to setup kubernetes's cluster domain when cluster domain is not cluster.local? #137

Closed gsmlg closed 3 years ago

gsmlg commented 4 years ago

How to setup kubernetes's cluster domain when cluster domain is not cluster.local ?

Cluster domain is not cluster.local, it is a public dns name

seivan commented 4 years ago

@gsmlg Would this be of interest https://github.com/bitwalker/libcluster/pull/115#issuecomment-574502876 ?

In general the current implementation of SRV seem to hardcode to local. That being said, I don't think it works with latest K8, though I could be wrong. There's a pending issue that seems unresolved.

However the this provider doesn't care as long as it can do a lookup.

gsmlg commented 3 years ago

Looks good

bitwalker commented 3 years ago

The PR that allows you to set CLUSTER_DOMAIN in the environment to override this behaviour has been merged to master and will be included in v3.3.0, I'd recommend giving that a shot.