'Add a new route to a minikube application (Ansible-awx)

I installed awx-operator on my local server (let's call it GFX server) by following this tutorial: https://github.com/ansible/awx-operator

My network is like: The GFX server :

  • eth0: 192.168.1.40 (local address)
  • tun0: 172.17.3.114 (a vpn address using openvpn)

I have a host BOX1 with:

  • eth0: 192.168.1.150 (local address)

I have another host BOX2 (not locally)

  • tun0: 172.17.3.30

When I launch a template with hello_word example on the local host (BOX1) everything went good:

enter image description here

When I try to launch the same template on the distant box (BOX2) I get this error: "Failed to connect to the host via ssh: ssh: connect to host 172.17.3.30 port 22: No route to host"

enter image description here

Here is a diagram explaining what I have.

enter image description here

here is the output of docker ps command:

$docker ps
CONTAINER ID   IMAGE                                        COMMAND                  CREATED         STATUS       PORTS                                                                                                                                  NAMES
c90bb11eecf5   gcr.io/k8s-minikube/kicbase:v0.0.30          "/usr/local/bin/entr…"   21 hours ago    Up 2 hours   127.0.0.1:49157->22/tcp, 127.0.0.1:49156->2376/tcp, 127.0.0.1:49155->5000/tcp, 127.0.0.1:49154->8443/tcp, 127.0.0.1:49153->32443/tcp   minikube
e4fdd5c95a5e   hawkbit/hawkbit-update-server:latest-mysql   "java -jar hawkbit-u…"   12 months ago   Up 3 hours   0.0.0.0:8080->8080/tcp, :::8080->8080/tcp                                                                                              hawkbit-server_hawkbit_1
8ab8f6efdcbf   mysql:5.7                                    "docker-entrypoint.s…"   12 months ago   Up 3 hours   0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp                                                                                   hawkbit-server_mysql_1

Question: there is a solution to let minikube add the route of the VPN ?

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source