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

Unable to find a approach to using LoadBalancer on mac m1/2 #3482

Open
zesiar0 opened this issue Jan 17, 2024 · 3 comments
Open

Unable to find a approach to using LoadBalancer on mac m1/2 #3482

zesiar0 opened this issue Jan 17, 2024 · 3 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@zesiar0
Copy link

zesiar0 commented Jan 17, 2024

I have tried the following two guides, but it's still not working for me
https://kind.sigs.k8s.io/docs/user/loadbalancer/
https://www.thehumblelab.com/kind-and-metallb-on-mac/

So is it any ways to use LoadBalancer on mac m1/m2 ?

@zesiar0 zesiar0 added the kind/support Categorizes issue or PR as a support question. label Jan 17, 2024
@ashraf-minhaj
Copy link

ashraf-minhaj commented Jan 18, 2024

I also tried MetalLb (mac m1) but as it seems (from forums I read) docker does not expose it's network on mac. That's why it's not possible. Still looking for ideas to implement load balancers in my local machine.

@kundan2707
Copy link

On macOS and Windows, docker does not expose the docker network to the host. Because of this limitation, containers (including kind nodes) are only reachable from the host via port-forwards, however other containers/pods can reach other things running in docker including loadbalancers. You may want to check out the Ingress Guide as a cross-platform workaround. You can also expose pods and services using extra port mappings as shown in the extra port mappings section of the Configuration Guide.

@BenTheElder
Copy link
Member

Also very rough and WIP: https://github.com/kubernetes-sigs/cloud-provider-kind, theoretically eventually this may bridge that gap.

If you use metallb on a mac you'll be limited to interacting with it from within the docker VM because of limits in docker networking, as noted int he guide.

More recently there is this suggestion #3448 but we haven't had a chance to review it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

4 participants