You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone,
I'm new to k8s and tried setting it up in my homelab today. Thanks to this repository it was quite easy to get started but I'm hitting a roadblock that I cannot seem to resolve on my own. I made a small example deployment shown below but I cannot get the clients ip address from the X-Real-Ip header.
Is there any additional configuration I forgot to add? If so, would it be useful to incorporate it into this repository?
Thanks for your help :)
Expected Behavior
X-Real-Ip should contain the client IP
Current Behavior
X-Real-Ip contains an ip from the k8s range (10.42.2.0)
This discussion was converted from issue #281 on April 23, 2023 21:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey everyone,
I'm new to k8s and tried setting it up in my homelab today. Thanks to this repository it was quite easy to get started but I'm hitting a roadblock that I cannot seem to resolve on my own. I made a small example deployment shown below but I cannot get the clients ip address from the X-Real-Ip header.
Is there any additional configuration I forgot to add? If so, would it be useful to incorporate it into this repository?
Thanks for your help :)
Expected Behavior
X-Real-Ip should contain the client IP
Current Behavior
X-Real-Ip contains an ip from the k8s range (10.42.2.0)
Steps to Reproduce
kubectly apply -f example-deployment.yaml
nginx.my.lan
in your browserexample-deployment.yaml
Context (variables)
Operating system: Ubuntu 22.04 LTS
Hardware: VM
Variables Used
all.yml
Hosts
host.ini
Possible Solution
According to this (https://stackoverflow.com/questions/50585616/kubernetes-metallb-traefik-how-to-get-real-client-ip) I think
metal_lb_mode: "layer2"
must be switched tometal_lb_mode: "bgp"
but I'm not sure what side effects this could/would have.Beta Was this translation helpful? Give feedback.
All reactions