-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating envoy base image Signed-off-by: willdavsmith <[email protected]> * Updating envoy base image Signed-off-by: willdavsmith <[email protected]> * PR Signed-off-by: willdavsmith <[email protected]> --------- Signed-off-by: willdavsmith <[email protected]>
- Loading branch information
1 parent
92142c3
commit 1f80e1f
Showing
5 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM envoyproxy/envoy:v1.11.1 | ||
FROM envoyproxy/envoy:v1.32.3 | ||
COPY envoy.yaml /etc/envoy/envoy.yaml | ||
CMD ["/usr/local/bin/envoy", "-c", "/etc/envoy/envoy.yaml"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
# Envoy for eshop | ||
|
||
## Overview | ||
|
||
Eshop uses an internal gateway to route requests between different services. Today in Radius, we don't support private/internal gateways (see https://github.com/radius-project/radius/issues/4789), so we created a custom image of envoy with the routing rules necessary to make eshop work. | ||
|
||
What this means is that if we need to update the names of routes in eshop, *we likely need to update the envoy image*. | ||
|
||
The routing configuration is in [envoy.yaml](envoy.yaml). See the `route_config` section specifically. | ||
|
||
To build the docker image, run `docker build . -t ghcr.io/radius-project/samples/eshop-envoy:0.1.<NUMBER>`. | ||
|
||
Where NUMBER is one greater than the latest version made. To view versions, see https://ms.portal.azure.com/#view/Microsoft_Azure_ContainerRegistries/RepositoryBlade/id/%2Fsubscriptions%2F66d1209e-1382-45d3-99bb-650e6bf63fc0%2FresourceGroups%2Fassets%2Fproviders%2FMicrosoft.ContainerRegistry%2Fregistries%2Fradius/repository/eshop-envoy. | ||
|
||
To push the image, run `az acr login -n radius` and then `docker push ghcr.io/radius-project/samples/eshop/eshop-envoy:0.1.<NUMBER>`. | ||
## Building | ||
|
||
To build and push the image, run the following commands: | ||
> Note: Replace `<TAG>` with the tag you want to use. By convention, we use the same tag as the external eshop image. | ||
```bash | ||
cd samples/eshop/src/envoy | ||
export TAG=<TAG> | ||
docker build . -t ghcr.io/radius-project/samples/eshop/eshop-envoy:$TAG | ||
docker push ghcr.io/radius-project/samples/eshop/eshop-envoy:$TAG | ||
``` |