I currently have a docker-compose setup with one container running an OpenVPN client and some containers behind it using --net=container to attach to the network stack of the OpenVPN client container to use it's network connection for outgoing traffic.
I want to adapt this to k8s (I'm using Weave currently for networking) but I am not sure how to approach it. I could route it on the host system manually but I want to implement this in Kubernetes directly without the need of manually messing around with the host system.
Since the Pod's pause container has a similar set-up with --net=container for all containers inside I though of utilizing this but I figured out that the only way to use a custom image for the pause container will change it globally and not on a per-pod basis.
Any ideas?