Introduction
I have three separate apps within a single org, which are called web, distributor, browser. I plan to communicate like so via HTTP:
- internet → web (Fly Proxy to distribute requests over web instances at the app level)
- web → distributor; private flycast (app level)
- distributor → browser; private network (machine level)
Since they are part of the same system, I wonder in retrospect whether I should have made them all part of one app. But they’re separate repos now, and I’m not minded to merge them. I intend to press on in my current direction.
I plan to have two web instances, and the normal Fly Proxy will apply here, to obtain round-robin load distribution. I will also have two distributor instances, and these will be accessed privately. These will also be redundant running copies; I believe the networking here is called Flycast, and it will do the private version of Fly Proxy.
Finally the last leg of the network is at the machine level, and since these will be ephemeral, no redundancy is required here. This bit seems to work over the default private network.
Problem
A Flycast connection from web → distributor works via ping
but not via curl
. I think what would solve it is if I added web and distributor to the same private network, like so:
flyctl ips allocate-v6 --network sequoia-net --private
However if I run that, I get an error:
Error: Could not find Network
Now I realise I can attach a named network to the two apps, but the apps already exist and I don’t want to take them down:
flyctl app create --network sequoia-net
Can I add that network name to two existing apps? Or is there a way to create a network independently of app creation/updating?