Hello, asking a similar question to my last one as...
# harvester
l
Hello, asking a similar question to my last one as I did not get a response that works. On my harvester cluster, I have a http service in a VM that I want to have see the external ip of the client. Havester has a built-in load balancer which works but the ip now shows as my cluster's IP address. The built-in load balaner is at L4 and does not add to the
X-Forwarded-For
header. I do not need to use the load balancer, I'm just looking for more solutions, but I want to know a way to expose the external IP to my app. Thank you.
p
we just use
ingress-nginx
on the box+VM and
"use-forwarded-headers": "true"
on the VM and it works.
cloudflared
on the VM is also a "simpler" option if viable
❤️ 1
l
Thanks, I ended up going with setting up Caddy on another server that then modifies the headers to add the real client IP then forward to the Harvester load balancer.
🚀 1