How to access a service running on k8s on proxmox server from another machine on home network?

jnitz36

New Member
Apr 14, 2023
2
0
1
I have a single Proxmox physical server 192.168.1.67 that I can access the web UI from a laptop on the same network.

I'm fairly light on networking stuff, so bear with me.
In Proxmox, I created 2 VM's which are running K3S, and have setup static IP's for. Both use Bridge: vmbr0 setting and have these IP's.
k8s-control vm is 192.168.1.180
k8s-worker vm is 192.168.1.179

I want to setup a service in k3s that I can access from my laptop on my home network.
I don't want to have to port forward, or use NodePort if possible, so I went with Metallb.
I've setup Metallb and have a service of nginx of type LoadBalancer with an External-IP assigned as 192.168.86.17
I can console into either of my k8's vm's and run a curl 192.168.86.17 and see the nginx page (great!)

However, from my laptop on my home network, the same curl command does not work. Nor can I ping the 192.168.68.17, but I believe that is by design.
Please help me understand, is there something on the physical Proxmox server that needs to be configured so that I can reach a service running on a VM (in k8s) from my laptop?
 
Update: I think I got this working. I re-setup my metallb IPAddressPool to use Ip's in the range of 192.68.1.240-192.168.1.250 and recreated the service so it had one of those IP's. THEN I could reach that IP from my laptop, which has an ip of 192.168.1.69.

So i think the problem was my laptop couldn't see the 192.168.86.xx address my service had before.