Skip to content
master
Switch branches/tags
Code
This branch is 7 commits ahead of bowei/expose-kubedns:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Service discovery (via DNS) for headless services across clusters

This setup will create a kubedns instance that exposes Kubernetes service mappings for DNS across Kubernetes clusters. The use case for this setup is where you have multiple clusters one of which hosts headless services shared with the other clusters, e.g. a shared database or control plane and the shared service is discovered using Kubernetes DNS mappings.

Caveats: ILB cannot share the same IP between the UDP and TCP DNS services, meaning this will be limited to UDP-based name resolution.

Block diagram

Setup

Service producer cluster

  • Setup external KubeDNS server, configured with domain set to your stub domain (“my.stub” in the example.): yaml.
  • Expose external KubeDNS as an ILB service: yaml.
  • Expose any services that need to have cross cluster DNS mappings as a headless service. yaml

Service consumer cluster

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages