How to Access Kubernetes Services via Domain Name on Fedora?

0
5
Asked By TechExplorer42 On

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

Answered By NetworkNinja99 On

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.

CodeMaster88 -

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

Answered By DevGuru55 On

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.