Open an openvpn client into Pod

Hello,
I’m relatively new to networking and Kubernetes, but I need to perform a load test on an OpenVPN server.

Here’s what I’ve done so far:

  • I created a Docker image that includes an OpenVPN client.
  • I set up a Kubernetes cluster using Minikube to run a Job that executes Pods containing my Docker image with OpenVPN.
  • I’m using Calico as the CNI in IPinIP mode.
  • I configured a Service with NodePort.

When I run my Pods, I can successfully establish a VPN tunnel. I can confirm this because:

  • The tun interface is mounted in each of my Pods.
  • The server logs and status file show that the tunnels are open.

However, I’m facing an issue: the tun0 interface in my Pods is effectively useless. From what I understand, it is not properly routed outside of my Node. I’m stuck and can’t figure out how to make the tun0 interface in my Pods connect externally through Calico.