Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90972eb

Browse files
author
Steve Richards
committed
updated Layer 7 UI image to have correct http port, updated deployment steps to make it clear what can be done via the UI and the alternative manualy approach
Signed-off-by: Steve Richards <[email protected]>
1 parent 113cd10 commit 90972eb

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed
81.9 KB
Loading

ee/ucp/interlock/deploy/index.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,30 @@ redirect_from:
88

99
This topic covers deploying a layer 7 routing solution into a Docker Swarm to route traffic to Swarm services. Layer 7 routing is also referred to as an HTTP routing mesh.
1010

11-
1. [Prerequisites](#prerequisites)
12-
2. [Enable layer 7 routing](#enable-layer-7-routing)
13-
3. [Work with the core service configuration file](#work-with-the-core-service-configuration-file)
14-
4. [Create a dedicated network for Interlock and extensions](#create-a-dedicated-network-for-Interlock-and-extensions)
15-
5. [Create the Interlock service](#create-the-interlock-service)
11+
- [Prerequisites](#prerequisites)
12+
- [Enable layer 7 routing via UCP](#enable-layer-7-routing-via-ucp)
13+
- [Enable layer 7 routing manually](#enable-layer-7-routing-manually)
14+
- [Work with the core service configuration file](#work-with-the-core-service-configuration-file)
15+
- [Create a dedicated network for Interlock and extensions](#create-a-dedicated-network-for-interlock-and-extensions)
16+
- [Create the Interlock service](#create-the-interlock-service)
17+
- [Next steps](#next-steps)
1618

1719
## Prerequisites
1820

1921
- [Docker](https://www.docker.com) version 17.06 or later
2022
- Docker must be running in [Swarm mode](/engine/swarm/)
2123
- Internet access (see [Offline installation](./offline-install.md) for installing without internet access)
2224

23-
## Enable layer 7 routing
25+
## Enable layer 7 routing via UCP
26+
2427
By default, layer 7 routing is disabled, so you must first
2528
enable this service from the UCP web UI.
2629

2730
1. Log in to the UCP web UI as an administrator.
2831
2. Navigate to **Admin Settings**
2932
3. Select **Layer 7 Routing** and then select **Enable Layer 7 Routing**
3033

31-
![http routing mesh](../../images/interlock-install-3.png){: .with-border}
34+
![http routing mesh](../../images/interlock-install-4.png){: .with-border}
3235

3336
By default, the routing mesh service listens on port 8080 for HTTP and port
3437
8443 for HTTPS. Change the ports if you already have services that are using
@@ -55,8 +58,7 @@ start the `ucp-interlock-proxy` service.
5558
At this point everything is ready for you to start using the layer 7 routing
5659
service with your swarm workloads.
5760

58-
59-
The following code sample provides a default UCP configuration:
61+
The following code sample provides a default UCP configuration (this will be created automatically when enabling Interlock as per section [Enable layer 7 routing](#enable-layer-7-routing)):
6062

6163
```toml
6264
ListenAddr = ":8080"
@@ -78,7 +80,7 @@ PollInterval = "3s"
7880
ProxyStopGracePeriod = "5s"
7981
ProxyConstraints = ["node.labels.com.docker.ucp.orchestrator.swarm==true", "node.platform.os==linux"]
8082
PublishMode = "ingress"
81-
PublishedPort = 80
83+
PublishedPort = 8080
8284
TargetPort = 80
8385
PublishedSSLPort = 8443
8486
TargetSSLPort = 443
@@ -123,7 +125,12 @@ PollInterval = "3s"
123125
HideInfoHeaders = false
124126
```
125127

128+
## Enable layer 7 routing manually
129+
130+
Interlock can also be enabled from the command line by following the below setions.
131+
126132
### Work with the core service configuration file
133+
127134
Interlock uses the TOML file for the core service configuration. The following example utilizes Swarm deployment and recovery features by creating a Docker Config object:
128135

129136
```bash
@@ -143,9 +150,9 @@ PollInterval = "3s"
143150
ProxyStopGracePeriod = "3s"
144151
ServiceCluster = ""
145152
PublishMode = "ingress"
146-
PublishedPort = 80
153+
PublishedPort = 8080
147154
TargetPort = 80
148-
PublishedSSLPort = 443
155+
PublishedSSLPort = 8443
149156
TargetSSLPort = 443
150157
[Extensions.default.Config]
151158
User = "nginx"
@@ -166,6 +173,7 @@ $> docker network create -d overlay interlock
166173
```
167174

168175
### Create the Interlock service
176+
169177
Now you can create the Interlock service. Note the requirement to constrain to a manager. The
170178
Interlock core service must have access to a Swarm manager, however the extension and proxy services
171179
are recommended to run on workers. See the [Production](./production.md) section for more information

0 commit comments

Comments
 (0)