In K8s, the ingress now provides the real (remote) client IP address in the x-real-ip and x-forwarded-for headers. However, tomcat still logs the (local) IP address of the ingress itself (192.x.x.x).
Tomcat can be configured to use the real IP, instead, though; see:
This requires editing server.xml and including it in the docker image
In K8s, the ingress now provides the real (remote) client IP address in the
x-real-ipandx-forwarded-forheaders. However, tomcat still logs the (local) IP address of the ingress itself (192.x.x.x).Tomcat can be configured to use the real IP, instead, though; see:
This requires editing server.xml and including it in the docker image