Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/loekd/radius-demos
Browse files Browse the repository at this point in the history
  • Loading branch information
loekd committed Aug 23, 2024
2 parents c85883f + 71fada7 commit 60728cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 03-Gateway/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource blue 'Applications.Core/containers@2023-10-01-preview' = {


resource gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'buggy-gateway'
name: 'gateway01'
properties: {
application: app.id
environment: env.id
Expand Down
8 changes: 4 additions & 4 deletions 03-Gateway/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ Please note that currently the **Gateway doesn't work when running with K3d**. S

- Open a terminal
- Call the Blue API:
- `curl http://localhost/blue/api/color/`
- `curl -HHost:test.loekd.com http://localhost/blue/api/color/`
- Path rewriting will strip the matched word from the path and forward the request to the downstream (blue) API.

- Call the Green API:
- `curl http://localhost/api/color/`
- `curl -HHost:test.loekd.com http://localhost/api/color/`
- No path rewriting configured, so the path will be forwarded to the downstream (green) API.

- Call the main site:
- `curl http://localhost`
- `curl -HHost:test.loekd.com http://localhost`
- No path rewriting configured, so the path will be forwarded to the downstream Nginx.


Expand All @@ -53,4 +53,4 @@ Please note that currently the **Gateway doesn't work when running with K3d**. S
- `kubectl delete ns test-demo03`

- `rad env delete test -y`
- `rad group delete test -y`
- `rad group delete test -y`

0 comments on commit 60728cb

Please sign in to comment.