You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deploy-apps/routes-domains.html.md.erb
+26-27Lines changed: 26 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -84,20 +84,20 @@ To create an internal route:
84
84
85
85
* After an internal route is mapped to an app, the route resolves to IP addresses of the app instances. The IP addresses are visible in the application container:
86
86
87
-
```console
88
-
$ cf ssh app
89
-
vcap@1234:~$ host app.apps.internal
90
-
app.apps.internal has address 10.255.169.200
91
-
app.apps.internal has address 10.255.49.7
92
-
app.apps.internal has address 10.255.49.77
93
-
```
87
+
```console
88
+
$ cf ssh app
89
+
vcap@1234:~$ host app.apps.internal
90
+
app.apps.internal has address 10.255.169.200
91
+
app.apps.internal has address 10.255.49.7
92
+
app.apps.internal has address 10.255.49.77
93
+
```
94
94
95
95
* To resolve individual instances, prepend the index to the internal route.
96
96
97
-
```console
98
-
vcap@1234:~$ host 1.app.apps.internal
99
-
1.app.apps.internal has address 10.255.49.7
100
-
```
97
+
```console
98
+
vcap@1234:~$ host 1.app.apps.internal
99
+
1.app.apps.internal has address 10.255.49.7
100
+
```
101
101
102
102
2. Create a network policy that allows your apps to communicate with each other. By default, apps cannot communicate over the container network. For more
103
103
information, see [Configuring container-to-container networking](cf-networking.html) and the [Cloud Foundry CLI reference guide](https://cli.cloudfoundry.org/en-US/cf/add-network-policy.html).
@@ -133,9 +133,8 @@ This command instructs <%= vars.app_runtime_abbr %> to only route requests to ap
133
133
<li>Any path under either of the these URLs, such as <code>http://example-app.<%=vars.app_domain%>/bar</code></li>
134
134
</ul>
135
135
136
-
<p></p>
137
136
138
-
#### <aid='create-route-wo-hostname'></a>Create an HTTP route without host name
137
+
<h4><aid='create-route-wo-hostname'></a>Create an HTTP route without host name</h4>
139
138
140
139
This approach creates a route with the same address as the domain itself and is permitted for private domains only. For more information, see [Private
141
140
Domains](#private-domains) .
@@ -172,7 +171,7 @@ If DNS is configured for this subdomain, this command instructs <%= vars.app_run
172
171
* `https://foo.<%=vars.private_app_domain%>`
173
172
* Any path under either of these URLs, such as `http://foo.<%=vars.private_app_domain%>/foo`
174
173
175
-
#### <aid='create-route-w-wildcard-hostname'></a> Create an HTTP route with wildcard host name
174
+
<h4><aid='create-route-w-wildcard-hostname'></a> Create an HTTP route with wildcard host name</h4>
176
175
177
176
An app mapped to a wildcard route acts as a fallback app for route requests if the requested route does not exist. To create a wildcard route, use an asterisk for the host name.
178
177
@@ -187,7 +186,7 @@ OK
187
186
If a client sends a request to `http://app.foo.<%=vars.app_domain%>` by accident, attempting to reach `example-app.foo.<%=vars.app_domain%>`,
188
187
<%=vars.app_runtime_abbr%> routes the request to the app mapped to the route `*.foo.<%=vars.app_domain%>`.
189
188
190
-
#### <aid='create-route-w-path'></a> Create an HTTP route with a path
189
+
<h4><aid='create-route-w-path'></a> Create an HTTP route with a path</h4>
191
190
192
191
Developers can use paths to route requests for the same host name and domain to different apps.
193
192
@@ -226,7 +225,7 @@ If the developer maps the first route with path `products` to the `products` app
226
225
</ul>
227
226
</div>
228
227
229
-
#### <aid='create-route-with-port'></a> Create a TCP route with a port
228
+
<h4><aid='create-route-with-port'></a> Create a TCP route with a port</h4>
230
229
231
230
A developer can create a TCP route for `<%=vars.tcp_app_domain%>` on an arbitrary port. This is the default in the v7 version of the cf CLI.
232
231
@@ -316,7 +315,7 @@ You can create and reserve routes for later use by following the procedure in [M
316
315
317
316
Changes to route mappings are run asynchronously. On startup, an app becomes accessible at its route within a few seconds. Similarly, upon mapping a new route to a running app, the app becomes accessible at this route within a few seconds of the CLI exiting.
318
317
319
-
#### <aid='map-route-manually'></a>Manually map a route
318
+
<h4><aid='map-route-manually'></a>Manually map a route</h4>
320
319
321
320
For these routes and apps:
322
321
@@ -364,7 +363,7 @@ In cf CLI v8, the following command maps the route `h2app.<%= vars.app_domain %>
#### <aid='map-route-w-manifest'></a>Map a route using app manifest
387
+
<h4><aid='map-route-w-manifest'></a>Map a route using app manifest</h4>
389
388
390
389
Developers can map a route to their app with a manifest by editing the `route` attribute to specify the host, domain, port, and path components of the route. For more information, see [Deploying with app manifests](../deploy-apps/manifest.html#routes).
391
390
392
-
#### <aid='map-route-to-mult-apps'></a>Map a route to multiple apps
391
+
<h4><aid='map-route-to-mult-apps'></a>Map a route to multiple apps</h4>
393
392
394
393
<%=partial'routing_conflict'%>
395
394
396
395
For more information about troubleshooting this problem, see [Routing conflict](troubleshoot-app-health.html#routing-conflict) in _Troubleshooting app deployment and health_.
397
396
398
-
#### <aid='map-multiple-routes'></a>Map multiple routes to one app
397
+
<h4><aid='map-multiple-routes'></a>Map multiple routes to one app</h4>
399
398
400
399
You can have multiple routes to an app, but those routes cannot have different context paths.
401
400
@@ -433,7 +432,7 @@ These routes are _not_ valid for a single app:
433
432
</tr>
434
433
</table>
435
434
436
-
#### <aid='map-internal-route'></a>Map an internal route to an app
435
+
<h4><aid='map-internal-route'></a>Map an internal route to an app</h4>
437
436
438
437
You can map an internal route to any app. This internal route allows your app to communicate with other apps without leaving the platform. After it is mapped, this route becomes available to all other apps on the platform.
439
438
@@ -710,7 +709,7 @@ When using shared domains, you cannot have routes with the same host name and do
710
709
711
710
Shared domains are HTTP by default, but can be configured to be TCP when associated with the TCP router group.
712
711
713
-
#### <aid='create-shared-domain'></a> Create a shared domain
712
+
<h4><aid='create-shared-domain'></a> Create a shared domain</h4>
714
713
715
714
Admins can create an HTTP shared domain with the `cf create-shared-domain` command:
716
715
```console
@@ -733,15 +732,15 @@ Then create the shared domain using the `--router-group` option to associate the
The internal domain is a special type of shared domain used for app communication internal to the platform. When you activate service discovery, the internal domain `apps.internal` becomes available for route mapping.
747
746
@@ -763,7 +762,7 @@ When using private domains, you can have routes with the same host name and doma
763
762
764
763
Private domains can be HTTP or HTTPS only. TCP routing is supported for shared domains only.
765
764
766
-
#### <aid='create-private-domain'></a>Create a private domain
765
+
<h4><aid='create-private-domain'></a>Create a private domain</h4>
767
766
768
767
Org managers can create a private domain by running:
769
768
@@ -777,7 +776,7 @@ Org managers can create a private domain for a subdomain by running:
0 commit comments