You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v3 API does not allow to specify ports on an app's processes #4079
With the v2 API, you could assign ports to your app's processes. This was required e.g. if you want to enable traffic to sidecars. With the v3 API, this seems no longer possible. We should discuss if this is a regression or if the feature was intentionally left out.
Yes, I think in v2 it automatically restarts the app when you modify the exposed ports, but we removed that behavior in v3 to give users more control over when their apps restart.
Activity
Gerg commentedon Nov 8, 2024
This was an intentional change with v3, but I think it's not easy to find in the docs.
In v3, mapping a route to a port on a process should "automatically" open that port (though, it currently requires a restart to take effect).
I have a demo repo that goes into details on more advanced sidecar networking: https://github.com/Gerg/cf-sidecar-networking
jochenehret commentedon Nov 11, 2024
A restart seems to do the trick: cloudfoundry/capi-bara-tests#105
Gerg commentedon Nov 11, 2024
Yes, I think in v2 it automatically restarts the app when you modify the exposed ports, but we removed that behavior in v3 to give users more control over when their apps restart.
jochenehret commentedon Nov 12, 2024
Ok, thanks for the clarification! Closing the ticket.