Support ALB for GCP gateways - #4279
Merged
Merged
Conversation
`dstack` now creates and manages an Application
Load Balancer for GCP gateways when
`load_balancer` is set to `{ type: alb }`.
```yaml
type: gateway
name: gcp-gateway
backend: gcp
region: europe-west9
domain: example.com
load_balancer:
type: alb
replicas: 2
certificate: null
public_ip: false
```
This allows you to have more than one GCP gateway
replica, with load balancing handled automatically
by `dstack`.
```shell
$ dstack gateway list
NAME BACKEND HOSTNAME DOMAIN DEFAULT STATUS
gcp-gateway 10.200.0.53 example.com ✓ running
replica=0 gcp (europe-west9) 10.200.0.54 running
replica=1 gcp (europe-west9) 10.200.0.55 running
```
GCP ALB is supported for both `public_ip: false`
and `public_ip: true` gateways. Currently, it is
only supported with `certificate: null` (no
HTTPS).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dstacknow creates and manages an ApplicationLoad Balancer for GCP gateways when
load_balanceris set to{ type: alb }.This allows you to have more than one GCP gateway
replica, with load balancing handled automatically by
dstack.$ dstack gateway list NAME BACKEND HOSTNAME DOMAIN DEFAULT STATUS gcp-gateway 10.200.0.53 example.com ✓ running replica=0 gcp (europe-west9) 10.200.0.54 running replica=1 gcp (europe-west9) 10.200.0.55 runningGCP ALB is supported for both
public_ip: falseand
public_ip: truegateways. Currently, it isonly supported with
certificate: null(noHTTPS).
Closes #4257