Skip to content

Commit

Permalink
note we don't need upstream service port, either
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Apr 3, 2024
1 parent 88b853a commit e5faef3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions website/content/docs/integrations/consul/service-mesh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ job "countdash" {
driver = "docker"
env {
COUNTING_SERVICE_URL = "http://count-api.virtual.consul:9001"
COUNTING_SERVICE_URL = "http://count-api.virtual.consul"
}
config {
Expand Down Expand Up @@ -353,12 +353,14 @@ environment variable `$COUNTING_SERVICE_URL`:

```hcl
env {
COUNTING_SERVICE_URL = "http://count-api.virtual.consul:9001"
COUNTING_SERVICE_URL = "http://count-api.virtual.consul"
}
```

The `transparent_proxy` block ensures that DNS queries are made to Consul so
that the `count-api.virtual.consul` name resolves to a virtual IP address.
that the `count-api.virtual.consul` name resolves to a virtual IP address. Note
that you don't need to specify a port number because the virtual IP will only be
directed to the correct service port.

### Manually Configured Upstreams

Expand Down

0 comments on commit e5faef3

Please sign in to comment.