Skip to content

Support ALB for GCP gateways - #4279

Merged
jvstme merged 9 commits into
masterfrom
issue_4257_gcp_alb
Sep 10, 2026
Merged

Support ALB for GCP gateways#4279
jvstme merged 9 commits into
masterfrom
issue_4257_gcp_alb

Conversation

@jvstme

@jvstme jvstme commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

dstack now creates and manages an Application
Load Balancer for GCP gateways when
load_balancer is set to { type: alb }.

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.

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

Closes #4257

`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).
@jvstme
jvstme merged commit 1f7b736 into master Sep 10, 2026
26 checks passed
@jvstme
jvstme deleted the issue_4257_gcp_alb branch September 10, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Support GCP ALB for gateways

1 participant