k8s | networking between two pods

9/4/2019

I would like since a pod containing a simple container (nginx, php, nodejs, etc ...) able to route all calls to an IP address to another pod that contains a container openvpn client.

What i do: (pod subnet in 10.2.0.x)

  • ping from the pod openvpn client the other pod => ok
  • ping from the php pod the pod openvpn client => ok
  • ping my destination (10.30.x.x) from the pod openvpn client => ok
  • after add route, ping my destination (10.30.x.x) from the php pod => NOT OK

I have already tried to add routes, but nothing to do.

Do you think it's possible to do what I want? I simply wish to route 10.30.x.x from php directly to openvpn pod

-- madubois
kubernetes
networking
vpn

0 Answers