Internal DNS server resolution in GKE cluster

Hi All,

We have a VPC Native private GKE cluster set-up in out google cloud platform. We have an internal HTTPS load balancer as an ingress to access backends.

Our organization DNS servers configured in Virtual machines in GCP.

Requirement : The PODS in our cluster should be able to perform a DNS resolution against the above DNS named servers. Reason for this is, applications in the PODS call some of our virtual machines in our networks (example: database server), currently I can only IP address of target server but I wanted to use the server alias that we configured in above DNS server (as you know this gives a flexibility of decoupling application related config values when a server name changes ).

Can someone please let me know how to achieve this ?

Regards,

Pradeep

Check if this is what you looking for. Setup / COnfigure CoreDNS plugin to route request to required nameservers.

https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/