I’m trying to create a Proof of Concept (POC) of a k3s cluster deployed on Hetzner. I have one VPS, a cpx31. I installed k3s without Traefik and then installed ingress-nginx (https://kubernetes.github.io/ingress-nginx/). I configured nginx with the following:
kind: ConfigMap
metadata:
name: ingress-nginx-controller
namespace: ingress-nginx
data:
enable-real-ip: "true"
However, when I deploy an app, I don’t receive the real IP of the user. Instead, I’m receiving “10.42.0.1”. If I understand correctly, I should be receiving the user’s IP. What am I missing? Do I need to configure something else?
I did the same thing on a VPS bought from Contabo, and everything works fine.
Thanks