5 ms·
Run it on a lightweight k8s (eg k3s) on your machine then use iptables to forward all traffic from k8s to your VPS
by nprateem 6y ago
Run it on a lightweight k8s (eg k3s) on your machine then use iptables to forward all traffic from k8s to your VPS
- 3np 6y agoI'm using some other orchestration than k8s/k3s (and regardless different deployments should have different entrypoints). But yeah, maybe the real answer is "iptables" and I just have to step up my game a bit to grok it.
- nprateem 6y agoK8s means you'll have a single source IP for all your application's traffic so you can just forward it all upstream instead of having to hunt for which ports it actually uses
- 3np 6y agoRight, but I'm not going to use kubernetes, and I only want this for certain containers. Maybe there's a solution for this with CNI, though?