I am trying to search for equivalent for rewrite name in coreDNS for kube-dns.
Am deploying a GKE cluster and kube-dns is available by default.
I need to use URL with company name even for intra-cluster traffic. For example, if the pod calls servicename-d1.subdomain.example.com it should go to servicename.d1.svc.cluster.local. There won't be any external request to the URL
Any way to implement this.
Referring to this, Gitlink helps in re-writing the DNS service. This rewrite plugin offers the ability to match the name in the question section of a DNS request. The match could be exact, a substring match, or based on a prefix, suffix, or regular expression. If the newly used name is not a legal domain name, the plugin returns an error to the client. The syntax for name rewriting is as follows:
You can also proceed by Kubernetes: Routing Internal Services Through FQDN refer to link2 for more information on DNS for Services and Pods.