threefoldtech / home

Starting point for the threefoldtech organization
https://threefold.io
Apache License 2.0
9 stars 4 forks source link

support for new primitive (reverse-gateway) type that creates a link to remote standalone gateway #1495

Closed muhamadazmy closed 6 months ago

muhamadazmy commented 7 months ago

Problem

While ZOS has a built-in support for gateways that becomes available with nodes that has public-config (can be used as access points) it's not always possible to run zos in some envirotments. Hence a some sort of detecated stand-alone gateway solution is needed.

The solution then goes as this

If gateway controller is restarted, it need to delete all configuration for traffek custom names, and wait for agents to reconnect.

it's obvious that this gatewasy agent/server need to have it's own separate repository

AhmedHanafy725 commented 7 months ago

The vm name must be a vm workload in the same deployment

why the vm workload must be on the same deployment with the gateway agent? We always deploy the vm and think if we need to expose it on a gateway afterward. can't be just on the same node and using the network name and vm's IP as we do on the other gateway workloads?

muhamadazmy commented 6 months ago

per here https://github.com/threefoldtech/zos/issues/2167

Where a new gw agent will run on the zos next to the workload that need to be exposed, then that agent will connect to a public and standalone gateway server that then can serve traffic over a reverse proxy