Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Daemon] Create a listener on host virtual IP and add virtualnetwork mux
This patch is creating a listener on host virtual IP on port 7777 and then adding handler to it which able to serve the virtual network service. From the VM following is now possible. Now it is also possible for `podman-machine-cni` plugin to add/remove port mapping when a container created with port expose. ``` $ curl host.crc.testing:7777/services/forwarder/all | jq . [ { "local": ":2222", "remote": "192.168.127.2:22" }, { "local": ":6443", "remote": "192.168.127.2:6443" }, { "local": ":443", "remote": "192.168.127.2:443" }, { "local": ":80", "remote": "192.168.127.2:80" } ] $ podman run -d -p 8080:80 docker.io/httpd:2.4 a29368f56624112de0a1e00c51875a2e9d3125ce6d08991dfec9cfe09c8bb394 $ curl host.crc.testing:7777/services/forwarder/all | jq . [ { "local": ":443", "remote": "192.168.127.2:443" }, { "local": ":80", "remote": "192.168.127.2:80" }, { "local": "0.0.0.0:8080", "remote": "192.168.127.2:8080" }, { "local": ":2222", "remote": "192.168.127.2:22" }, { "local": ":6443", "remote": "192.168.127.2:6443" } ] ```
- Loading branch information