Always show replica IP in dstack gateway -v - #4172
Merged
Merged
Conversation
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
```
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.
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