Skip to content

Commit

Permalink
Have one app use manifest to define route
Browse files Browse the repository at this point in the history
[#155643914]

Signed-off-by: Angela Chin <[email protected]>
  • Loading branch information
christianang authored and angelachin committed Mar 13, 2018
1 parent a08a2d5 commit 1c89a70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions backend-a/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ applications:
GOPACKAGENAME: example-apps/cats-and-dogs-with-service-discovery/backend-a
CATS_PORTS: 7007,7008,7009
UDP_PORTS: 9001,9002,9003
routes:
- route: backend-a.apps.internal
5 changes: 2 additions & 3 deletions docs/c2c-with-service-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,16 @@ via container-to-container networking. An internal hostname is configured via th
the domain provided set to the reserved internal domain of `apps.internal`.

#### Deploying (Diagram 1)
Backend-A
Backend-A (example with internal route defined in app manifest)
```
cd $DIR/backend-a
cf push backend-a --no-start --no-route
cf map-route backend-a apps.internal --hostname backend-a
cf set-env backend-a CATS_PORTS "7007,7008"
cf set-env backend-a UDP_PORTS "9003,9004"
cf start backend-a
```

Backend-B
Backend-B (example with internal route defined using CLI)
```
cd $DIR/backend-b
cf push backend-b --no-start --no-route
Expand Down

0 comments on commit 1c89a70

Please sign in to comment.