How to Expose Kubernetes Services with Cloudflare and Ingress?

0
2
Asked By TechNoob99 On

Hey everyone! I'm trying to expose some services on my Kubernetes cluster using an ingress along with Cloudflare, but I'm running into some issues. I've followed a guide (link in the original post), but I still can't get it to work and haven't found any logs that explain what's going wrong. Has anyone dealt with this before? Any tips or advice would be greatly appreciated!

2 Answers

Answered By CloudViking88 On

I've set up a similar thing at my home cluster! I use a private ingress and Cloudflared so I can access it from the internet without any issues. It's been working perfectly for me!

Answered By K8sGuru42 On

Check out this GitHub repo: https://github.com/adyanth/cloudflare-operator. It might have what you need! But be careful; you could also be missing some fundamentals of DNS and Kubernetes. Make sure you're using a LoadBalancer type service in front of your ingress controller with an external IP—that's the key value for your DNS A record. Instead of just using the Cloudflare operator, consider ExternalDNS with the Cloudflare plugin along with a proper API token to manage your DNS records automatically.

DNSWhiz -

I think you might be overcomplicating it. Just ensure your ingress controller is set up properly and add the necessary ingress resources. You can reference the ingress controller in your Cloudflared values.yaml, and it should work just fine.

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.