Skip to content

Commit

Permalink
Merge pull request #1 from kubeshop/kylehodgetts/enhancement/dynamic-…
Browse files Browse the repository at this point in the history
…ports-mapping

Add port mappings to envoy frontends
  • Loading branch information
Kyle Hodgetts authored Sep 29, 2021
2 parents dd6d423 + d1b5d33 commit a4f8edb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/petstore-dynamic-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@ docker-compose up

Envoy frontends will be available on *http://172.21.0.5:8080* (Cluster1) and *http://172.21.0.6:8080* (Cluster2) while backend could be reached on http://172.21.0.3:8080 .

Envoy management interface is available on http://172.21.0.5:19000, http://172.21.0.6:19000, there one can verify what configuration it has in config_dump.
On MacOS, the frontends are available on *http://localhost:8080* (Cluster1) and *http://localhost:8081* (Cluster2)

Envoy management interface is available on *http://172.21.0.5:19000*, *http://172.21.0.6:19000*, there one can verify what configuration it has in config_dump.

On MacOS, the Envoy management interface is available on *http://localhost:19000* and *http://localhost:19001*

To test:

```shell
# Linux
curl -v -X GET 'http://172.21.0.5:8080/api/v3/pet/1' -H 'accept: application/json'

# MacOS
curl -v -X GET 'http://localhost:8080/api/v3/pet/1' -H 'accept: application/json'
```


Expand Down
6 changes: 6 additions & 0 deletions examples/petstore-dynamic-config/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ services:
GO_CONTROL_PLANE_ADDRESS: ${GO_CONTROL_PLANE_ADDRESS}
GO_CONTROL_PLANE_PORT: ${GO_CONTROL_PLANE_PORT}
ENVOY_CLUSTER_ID: envoy_cluster1
ports:
- 8080:8080
- 19000:19000
networks:
kusk-gateway:
ipv4_address: "172.21.0.5"
Expand All @@ -42,6 +45,9 @@ services:
GO_CONTROL_PLANE_ADDRESS: ${GO_CONTROL_PLANE_ADDRESS}
GO_CONTROL_PLANE_PORT: ${GO_CONTROL_PLANE_PORT}
ENVOY_CLUSTER_ID: envoy_cluster2
ports:
- 8081:8080
- 19001:19000
networks:
kusk-gateway:
ipv4_address: "172.21.0.6"
Expand Down

0 comments on commit a4f8edb

Please sign in to comment.