Hey everyone! I'm working with a bare metal Fedora 43 server and I want to set up Kubernetes on it. My main goal is to access the services hosted on this Kubernetes cluster using a domain name from outside the cluster. I've experimented with k3d and minikube using ingresses and metallb as a load balancer, but I still can't seem to access it by name without resorting to port forwarding. If that's the only option, I can work with it, but I really need to figure out how to access it by DNS name. Any advice would be greatly appreciated! Thanks!
2 Answers
If you're self-hosting, you'll likely need to use port forwarding for your ingress or load balancer. Keep in mind that external DNS servers only reach up to your edge router, so they won't recognize your internal network setup.
One option you could try is creating a DNS record on your local machine, using a wildcard like *.kube.local, and pointing it to your ingress. That way you can access your services by name locally without needing to rely on port forwarding.

Yeah, that makes sense for internal traffic. Just make sure to set up your routing correctly!