News for hackers. Stuff that matters.
Re:The Cult of Kubernetes by tshanmu on Monday September 09, 2019 @04:07AM (#20916119)
How do you expose your services via an ingress when it needs to be behind a nat (via your home router/gateway)? Thanks!
Re:The Cult of Kubernetes by deforciant on Monday September 09, 2019 @05:22AM (#20916510)
Hi, my shameless plug (I am the creator of webhookrelay): https://webhookrelay.com/v1/guide/ingress-controller, using it both for services that are running in GKE and on minikube locally. It's cheaper than allocating a LB IP for backing services that don't get much traffic like Grafana and similar things.
Re:The Cult of Kubernetes by ivan4th on Monday September 09, 2019 @04:46AM (#20916295)
One possibility (especially for "home Kubernetes" case) is not exposing the services to the outside world at all and using ZeroTier to access them https://www.zerotier.com/ It's L2 mesh VPN, and I believe you can even use MetalLB with it with some minor trickery. You can, of course, set up WireGuard or OpenVPN for yourself, too, but from my experience zt is the simplest for accessing the boxes behind NAT as you don't even need to set up any servers with real IPs.
Re:The Cult of Kubernetes by apeacox on Monday September 09, 2019 @05:43AM (#20916631)
DNAT. You map one/more ports from your router exposed on internet to ip:port of the local app.

However, http/https ports are already used on routers to offer an admin web GUI. It’s technically possible to circumvent this with some ad-hoc firewall rules, but it depends if the router admin UI let’s you do that.

Re:The Cult of Kubernetes by gdamjan1 on Monday September 09, 2019 @06:08AM (#20916747)
> However, http/https ports are already used on routers to offer an admin web GUI.

not on the wan side I'd hope

Re:The Cult of Kubernetes by apeacox on Monday September 09, 2019 @08:20AM (#20917419)
Exactly, they aren’t exposed outside. That’s why you can “potentially” add rules to route request from the outside to an internal host:port, even 80/143. On the LAN you would still able to connect to router admin.
Re:The Cult of Kubernetes by wepower_ico on Monday September 09, 2019 @04:13AM (#20916144)
Using NodePort and Traefik ingress controller.
Re:The Cult of Kubernetes by tshanmu on Monday September 09, 2019 @06:54AM (#20916974)
thanks!
Re:The Cult of Kubernetes by bryanlarsen on Monday September 09, 2019 @06:20AM (#20916812)
You don't necessarily need an ingress, NodePort may be sufficient to expose a service.