Closed nderraugh closed 3 years ago
I'm running a cluster with metallb, and the fact that your ping is returning the correct value I agree means you're just looking at networking to get connected.
My first reaction is that it looks like a firewall is blocking port 80. I don't have a pi with 20.04 around so I don't know the defaults. Is ufw on and enabled on the pi by chance? The ping would connect and the curl timeout if it was blocked by a firewall.
Hmm, thanks for jumping in with your thoughts @chris-sanders. No ufw:
ubuntu@ubuntu:~$ sudo ufw status
Status: inactive
The iptables output is in the attached inspection-report above.
The problem was a user error: misconfigured router.
Hi, quick shout out to the micrk8s team: I'm super excited about microk8s. It is great, thank you!
I am setting up metallb, and running into a problem. Everything seems to be working as expected from metallb (arping, tcpdump and the speaker logs) but I'm not able to curl a connection to the metallb assigned IP from my mac on the same network, but I am from the microk8s node itself. I don't want to send anyone down an unproductive rabbit hole -- caveat lector -- but my current intuition is that it's related to iptables.
I have a 1 node microk8s instance on a raspberry pi 4b running ubuntu 20.04. Before I installed micrk8s I added
cgroup_enable=memory cgroup_memory=1
to /boot/firmware/cmdline.txt and rebooted and I ransudo iptables -P FORWARD ACCEPT
. I installed microk8s this morning withsnap install microk8s --classic
. I have the pi plugged into my router with ethernet. I configured my router to give out IPs from 192.168.12.0/25 and reserved 192.168.12.128/25 for metallb. That's the range I used when I enabled the metallb addon:Following the verification steps from https://opensource.com/article/20/7/homelab-metallb I created a nginx landing page deployment with:
And created a service in microk8s to use a metallb LoadBalancer with:
Looking at the service it assigned 192.168.12.128 as the external IP. If I ssh into the microk8s node which has an IP of 192.168.12.64 I am able to curl 192.168.12.128 and get the landing page. But if I curl from any other hosts outside the "cluster" I get no response.
From my mac if I arping I get:
and from the same mac if I run tcpdump I get:
In both the arping and tcpdump output the MAC is correct. So I'm pretty sure metallb is setup and doing what it is supposd to.
Attached is my microk8s inspect tarball.
I am happy to answer any questions, or provide more info, or try other things to try and help out. I've done this start to finish several times in the last few days and I'm pretty confident it's reproducible as per ^^, but don't have a 2nd pi handy to find out. inspection-report-20201014_160209.tar.gz