Skip to content

Commit 8484178

Browse files
Aniloplenobodyiam
authored andcommitted
docs(deployment): distributed deployment network policy, how to open up the network
1 parent bdf0c81 commit 8484178

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

docs/zh/deployment/distributed-deployment-guide.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,67 @@ EUREKA_INSTANCE_PREFER_IP_ADDRESS=false
145145

146146
如果Apollo部署在公有云上,本地开发环境无法连接,但又需要做开发测试的话,客户端可以升级到0.11.0版本及以上,然后配置[跳过Apollo Meta Server服务发现](zh/usage/java-sdk-user-guide#_1222-跳过apollo-meta-server服务发现)
147147

148+
### 1.4.5 打通网络
149+
150+
在一些公司(例如金融行业的公司),存在很多防火墙和网络隔离,需要打通网络(让ip1可以访问ip2的某个端口)
151+
152+
#### 1.4.5.1 打通客户端到配置中心的网络
153+
154+
对于使用配置中心的客户端,
155+
156+
client需要访问所有(或者相同机房内的)Meta Server和Config Service(默认都是8080端口),请不要打通Client到Admin Service的网络
157+
158+
```mermaid
159+
flowchart LR
160+
subgraph servers[IP1:8080, IP2:8080, ..., IPn:8080]
161+
m[Meta Sever]
162+
c[Config Service]
163+
end
164+
client --> servers
165+
```
166+
167+
如果某个应用需要使用openapi,还需要访问Portal(默认是8070端口)
168+
169+
```mermaid
170+
flowchart LR
171+
subgraph servers[IP:8070]
172+
Portal
173+
end
174+
openapi-client --> servers
175+
```
176+
177+
#### 1.4.5.2 打通配置中心内部的网络
178+
179+
对于配置中心自己内部,由于各个服务之间需要互相访问,所以也要保证网络上的连通
180+
181+
```mermaid
182+
flowchart LR
183+
subgraph config-service-servers[All Config Service's IP:8080]
184+
m[Meta Server]
185+
c[Config Service]
186+
end
187+
subgraph admin-service-servers[All Admin Service's IP:8090]
188+
a[Admin Service]
189+
end
190+
191+
subgraph portal-servers[IP:8070]
192+
p[Portal]
193+
end
194+
195+
196+
configdb[(ConfigDB)]
197+
portaldb[(PortalDB)]
198+
199+
a --> config-service-servers
200+
201+
a --> configdb
202+
c --> configdb
203+
204+
p --> config-service-servers
205+
p --> admin-service-servers
206+
p --> portaldb
207+
```
208+
148209
# 二、部署步骤
149210

150211
部署步骤总体还是比较简单的,Apollo的唯一依赖是数据库,所以需要首先把数据库准备好,然后根据实际情况,选择不同的部署方式:

0 commit comments

Comments
 (0)