Skip to content

Always show replica IP in dstack gateway -v - #4172

Merged
jvstme merged 1 commit into
masterfrom
pr_cli_gateway_replica_hostname
Aug 19, 2026
Merged

Always show replica IP in dstack gateway -v#4172
jvstme merged 1 commit into
masterfrom
pr_cli_gateway_replica_hostname

Conversation

@jvstme

@jvstme jvstme commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

This allows to view the replica IP address of
single-replica gateways with a load balancer.
Before this commit, the load balancer's hostname
would obscure the replica's IP address, which is
still the case without --verbose.

$ dstack gateway
 NAME        BACKEND          HOSTNAME                                                   DOMAIN       DEFAULT  STATUS
 my-gateway  aws (eu-west-1)  dstack-sj8w4lxu-lb-3982068021.eu-west-1.elb.amazonaws.com  example.com  ✓        running

$ dstack gateway --verbose
 NAME          BACKEND          HOSTNAME                                                   DOMAIN       DEFAULT  STATUS   CREATED     ERROR
 my-gateway                     dstack-sj8w4lxu-lb-3982068021.eu-west-1.elb.amazonaws.com  example.com  ✓        running  9 mins ago
    replica=0  aws (eu-west-1)  3.249.160.53                                                                     running  9 mins ago

This allows to view the replica IP address of
single-replica gateways with a load balancer.
Before this commit, the load balancer's hostname
would obscure the replica's IP address, which is
still the case without `--verbose`.

```shell
$ dstack gateway
 NAME        BACKEND          HOSTNAME                                                   DOMAIN       DEFAULT  STATUS
 my-gateway  aws (eu-west-1)  dstack-sj8w4lxu-lb-3982068021.eu-west-1.elb.amazonaws.com  example.com  ✓        running

$ dstack gateway --verbose
 NAME          BACKEND          HOSTNAME                                                   DOMAIN       DEFAULT  STATUS   CREATED     ERROR
 my-gateway                     dstack-sj8w4lxu-lb-3982068021.eu-west-1.elb.amazonaws.com  example.com  ✓        running  9 mins ago
    replica=0  aws (eu-west-1)  3.249.160.53                                                                     running  9 mins ago
```
@jvstme
jvstme merged commit 3568e5d into master Aug 19, 2026
27 checks passed
@jvstme
jvstme deleted the pr_cli_gateway_replica_hostname branch August 19, 2026 22:25
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.

1 participant