https://rancher.com/ logo
s

salmon-afternoon-72196

01/03/2023, 6:27 PM
What am I missing? I setup a K3S cluster and used Harvester as the Cloud Provider, when I create a LoadBalancer it using the 3 ip's of my work nodes. I would like to be able to route based on prefix i.e. myapp.app.domain.com. I setup CloudFlare to point wildcard *.app.domain.com to on of the worker node IP's and that works but if that particular worker node crashes and gets a new IP I can no longer get to my apps and I need to update the IP in CloudFlare. Is there a way to expose a single IP that can resolve the work node IP's? TIA
b

bright-fireman-42144

02/07/2023, 4:00 PM
look into metallb in conjuction with traefik as an ingress controller
older article (only showing so you can get a better idea, never blindly follow blogs/tutorials unless in a dev sandbox) https://www.devtech101.com/using-metallb-and-traefik-load-balancing-for-your-bare-metal-kubernetes-cluster-part-1/
7 Views