Google Container Engine (GKE) Kubernetes Custom DNS Entries

9/3/2015

I am running a Kubernetes Cluster on Google Container Engine with the default SkyDNS implementation enabled.

How can I add custom DNS Entries in Google Container Engine? Is there any way to:

  1. Add custom DNS Entries to SkyDNS that will persist if the SkyDNS container is restarted?
  2. Change the default DNS Settings on my nodes to a custom DNS Server, which in-turn will forward to SkyDNS?
  3. Change the Forward DNS of SkyDNS to my custom DNS Server?

Edit: If trying to resolve a Google Compute Engine VM from inside a container, the default DNS Server that Google Container Engine uses will resolve VM Names in the formats:

<vm-name>.c.<project-name>.internal
<vm-name>.<project-id>.google.internal
-- Caleb
google-kubernetes-engine
kubernetes

1 Answer

9/5/2015

At the moment there is not any API to directly manipulate DNS within the cluster. It's something we want to do but have not tackled yet.

Can you explain what you're hoping to achieve?

Edit: if you want to run Consul, nothing is stopping you. Our DNS server is just one implementation.

-- Tim Hockin
Source: StackOverflow