Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Container Engine (GKE) Kubernetes Custom DNS Entries

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
like image 688
Caleb Avatar asked Nov 28 '25 11:11

Caleb


1 Answers

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.

like image 78
Tim Hockin Avatar answered Nov 30 '25 06:11

Tim Hockin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!