Network mode container or service in order to share vpn network

Hi ,
I want to know ,if network_mode of docker-compose or --net parameter of docker client , has an equivalent in kubernetes.

I’ve got sevreal apps in the same namespace , and a try to make them share the network of my vpn client pod.

Thanks

1 Like

Hi Teddy,

Did you find a solution ?
I try to do the same thing with my Rancher with no success :slight_smile:

1 Like

Any success? Cant say I can find any documentation

You can combine multiple containers into a pod that would share the same network namespace (usually via a deployment that manages creating the pods)

But is no equivalent of --net/networks in k8s, or sharing a network namespace between pods.