Skip to content

Lima + KinD + MetalLB #408

Answered by bcollard
bcollard asked this question in Q&A
Nov 10, 2021 · 3 comments · 10 replies
Discussion options

You must be logged in to vote

The last piece I was missing is about IP packet forwarding on the Lima VM:

BRIDGE_NET=$(ip -o link show | awk -F': ' '{print $2}' | grep "br-")
SRC_IP=192.168.105.1
DST_NET=172.18.0.0/16
sudo iptables -t filter -A FORWARD -4 -p tcp -s ${SRC_IP} -d ${DST_NET} -j ACCEPT -i lima1 -o ${BRIDGE_NET}

Result: from my MacBook, I can run docker commands and I can spin up multiple KinD clusters. In these k8s clusters, I can create Services type LoadBalancer and access them from my MacBook.
I'll blog about it.

Big kudos to the contributors for this nice project! ❤️

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@bcollard
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@bcollard
Comment options

@jandubois
Comment options

@rupesh-papneja
Comment options

@jandubois
Comment options

@rupesh-papneja
Comment options

Answer selected by bcollard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested component/network/vmnet
3 participants
Converted from issue

This discussion was converted from issue #404 on November 11, 2021 07:27.