

Step 2: Register a domain name within the DSM DNS server I won't bore you with setting it up, as that is a "next, next, finish" installation. By default, Synology offers a DNS server within DSM (DiskStation Manager OS). Since the Netflix era, I don't use it as much anymore, so this could come in handy.Īnd yes, I was lucky. After a while, the penny dropped, and I realized that I still had a Synology NAS running. I wasn't sure if I should run the DNS server besides my K3s cluster or on a separate virtual machine (VM). Step 1: Setting up the external DNS server for Kubernetes But if the K3s cluster is down, I’ll have an angry wife and children complaining about the internet being down (which it isn’t, of course). I could, for instance, run a DNS server on Kubernetes for my local network. However, running DNS on a local network is not as easy as it seems. While the internal DNS service is mission-critical, the external isn’t. One of the most important components within Kubernetes is DNS.

Resolve DNS queries for internet domain names.Resolve DNS queries for the internal domain ().The solution should be able to handle the three following scenarios: If one of your DNS servers replies but with an incorrect answer, your client will never go to the second DNS server in your list. A fallback must be in place pointing to some DNS provider on the internet.ĭNS requests are a bit strange. So, resolving domain names for clients should still work, no matter if my cluster or my Synology NAS is down. Whatever happens, my clients (my wife and kids) should always have a 100% uptime -) For applications to be reachable from the outside, running on your k3s cluster, DNS is very useful. What was the challenge? The DNS world for Kubernetesĭuring my journey in the world of Kubernetes, I became a bit lost on the DNS side. In this blog, I will share how to set up external DNS at home. For that reason, I bought an Intel NUC and installed Ubuntu, and got started with K3S. After following an internal CKA training, I needed teaching material and flying hours to familiarize myself with Kubernetes to pass the CKA exam (which I did).
