Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement dstack apply command for creating and updating gateways #1219

Closed
r4victor opened this issue May 14, 2024 · 0 comments · Fixed by #1223
Closed

Implement dstack apply command for creating and updating gateways #1219

r4victor opened this issue May 14, 2024 · 0 comments · Fixed by #1223
Assignees
Labels

Comments

@r4victor
Copy link
Collaborator

r4victor commented May 14, 2024

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.:

type: gateway
name: my-gateway
backend: aws
region: eu-west-1
domain: '*.example.com'

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).

@r4victor r4victor self-assigned this May 14, 2024
@r4victor r4victor changed the title Implement dstack apply command for creating and updating gateway Implement dstack apply command for creating and updating gateways May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant