![]() ![]() So ,for instance my internal network has 3 virtual LANs: 10.0.x.x, 10.1.x.x and 10.2.x.x and my Kubernetes chose 10.233.x.x. First thing I had to do is add a route to my network setup to route the IP subnet used in Kubernetes to the master node's IP. Turns out it's actually easier than I thought. I was trying to do something similar using Kubernetes, but wasn't sure how to accomplish that. With Docker alone I was creating virtual nics on the Linux host, then mapping IP/Port of the Docker containers to those IP/Ports and then pointing the DNS A record in Bind9 to that IP. I will leave answer as the correct one since it did answer the original question, but wanted to add some details of my final solution for those that might stumble here in the future.īasically, I was trying to get to my Kubernetes services via simplified internal DNS names, like. I know this is just me not knowing what I am doing, but I don't even know enough to google the right things at this point. With 10.233.0.3 being the IP of the CoreDNS service IP in the cluster. I tried something like: > nslookup 10.233.0.3 The thing is, even if I try to nslookup the services manually, it still doesn't seem to work. At least, that how I picture it should work? I am not sure, maybe I am misunderstanding it. I am guessing that I somehow need to tell the DNS server running on my master that anything. The resolve internally as, where X is the node number 1-3 Nodes 1-3: Ubuntu 18.04 LTS serving only as Kubernetes hosts.Master: Ubuntu 18.04 LTS running DNS (Bind9) plus serves as master for the Kubernetes cluster.DHCP DNS points to the Master box's internal IP plus 8.8.8.8 and 8.8.4.4, with the default search domain set to one of my personal domains ( is used as an example) Network - Unifi setup with USG, Cloud Key, and a switch.What I am trying to accomplish is to get some sort of DNS resolution working so I can proceed to setup ingress. This is on my home network, which I will explain down bellow. I used kubespray to get everything running. ![]() I have a kubernetes cluster running w/ 4 nodes, my main master node plus for other nodes. ![]()
0 Comments
Leave a Reply. |