Implement dstack apply
command for creating and updating gateways
#1219
Labels
dstack apply
command for creating and updating gateways
#1219
Currently, dstack gateways can be created and updated only via CLI arguments. As gateway configuration becomes more complex (e.g. #1171), we need a better interface to configure all the gateway parameters. The proposal is to allow users configure gateway via yaml similar to run configurations, e.g.:
To create/update gateways via yaml configuration, we introduce
dstack apply
command. Potentially, this command can be used to create all types of dstack resources using declarative approach. For gateways specifically,dstack apply
will create a new gateway if the gateway name is not specified. If the name is specified, it will try to update the gateway if possible (e.g. domain changed) or suggest to re-create the gateway (e.g. backend changed).The text was updated successfully, but these errors were encountered: