1

I have 2 services which talk to each other by service.internal.custom.com or by service.custom.com

Their communication is internal, i.e. non of those domains are available in public.

When I migrate to kubernetes, the new names are different. They are: service.default.svc.cluster.local

How to make Kube-DNS to map service.custom.com to service.default.svc.cluster.local?

aclowkay
  • 133
  • 4

1 Answers1

2

The top answer on this similar question seems a good approach:

Here

Using CoreDNS to rewrite your preferred domain to the default internal one.

You could look to change the internal name itself away from the default, but that would be a more fundamental change to the whole cluster config....this approach seems much cleaner.

Alex Moore
  • 1,654
  • 4
  • 11