Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Allow the use of ServiceType LoadBalancer in Kubernetes Integration #1763

Open
1 task done
mikeshootzz opened this issue Nov 29, 2024 · 1 comment
Open
1 task done
Labels
documentation Improvements or additions to documentation

Comments

@mikeshootzz
Copy link

Description

The current Kubernetes integration uses a NodePort to expose the ingress controller. I would like to use a Service of type LoadBalancer to leverage a VIP provided by MetalLB. However, when I configure the LoadBalancer service, the VIP's IP is forwarded instead of the actual client IP. Is there something I might be misconfiguring, or is this behavior expected and unavoidable in this setup?

Proposed solution (optional)

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mikeshootzz mikeshootzz added the documentation Improvements or additions to documentation label Nov 29, 2024
@mikeshootzz mikeshootzz changed the title [DOC] [DOC] Allow the use of ServiceType LoadBalancer in Kubernetes Integration Nov 29, 2024
@abargst
Copy link

abargst commented Nov 29, 2024

Try adding these in your bunkerweb env:

USE_REAL_IP: "yes"
USE_PROXY_PROTOCOL: "yes"
REAL_IP_HEADER: "proxy_protocol"
REAL_IP_FROM: "10.0.0.0/8 192.168.0.0/16 172.16.0.0/12"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants