更新 'kubernetes-MD/利用kubernetes部署微服务项目.md'

This commit is contained in:
diandian 2023-04-12 14:17:47 +08:00
parent fc9bb47ebb
commit 985e38ef5e
1 changed files with 807 additions and 808 deletions

View File

@ -23,7 +23,7 @@ node-3 Ready <none> 11d v1.23.1
harbor环境检查 harbor环境检查
<img src="%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220508222722564.png" alt="image-20220508222722564" style="zoom:50%;" /> <img src="https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220508222722564.png" alt="image-20220508222722564" style="zoom:50%;" />
## 二:项目准备 ## 二:项目准备
@ -102,7 +102,7 @@ CMD java -jar /usr/local/tensquare_eureka_server-1.0-SNAPSHOT.jar
仓库验证: 仓库验证:
<img src="%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220508224930884.png" alt="image-20220508224930884" style="zoom:50%;" /> <img src="https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220508224930884.png" alt="image-20220508224930884" style="zoom:50%;" />
#### 2.tensquare_zuul部署 #### 2.tensquare_zuul部署
@ -136,7 +136,7 @@ CMD java -jar /usr/local/tensquare_zuul-1.0-SNAPSHOT.jar
仓库验证: 仓库验证:
<img src="%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220508230055752.png" alt="image-20220508230055752" style="zoom:50%;" /> <img src="https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220508230055752.png" alt="image-20220508230055752" style="zoom:50%;" />
注意: 注意:
@ -310,7 +310,7 @@ CMD java -jar /usr/local/tensquare_gathering-1.0-SNAPSHOT.jar
仓库验证: 仓库验证:
<img src="%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220508233621370.png" alt="image-20220508233621370" style="zoom:50%;" /> <img src="https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220508233621370.png" alt="image-20220508233621370" style="zoom:50%;" />
注意: 注意:
@ -350,8 +350,7 @@ eureka:
#### 1.所有镜像验证 #### 1.所有镜像验证
![image-20220508233955412](%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220508233955412.png) ![image-20220508233955412](https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220508233955412.png)
#### 2.部署eureka #### 2.部署eureka
Eureka之Deployment创建 Eureka之Deployment创建
@ -416,7 +415,7 @@ NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AG
eureka-service NodePort 10.107.243.240 <none> 10086:30020/TCP 2m22s eureka-service NodePort 10.107.243.240 <none> 10086:30020/TCP 2m22s
``` ```
<img src="%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220508235409218.png" alt="image-20220508235409218" style="zoom:50%;" /> <img src="https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220508235409218.png" alt="image-20220508235409218" style="zoom:50%;" />
#### 3.部署zuul #### 3.部署zuul
@ -485,7 +484,7 @@ zuul-service NodePort 10.103.35.255 <none> 10020:30021/TCP 5s
验证是否加入注册中心: 验证是否加入注册中心:
![image-20220508235634459](%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220508235634459.png) ![image-20220508235634459](https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220508235634459.png)
#### 4.mysql部署 #### 4.mysql部署
@ -729,7 +728,7 @@ zuul-service NodePort 10.103.35.255 <none> 10020:30021/TCP 39
注册中心验证: 注册中心验证:
<img src="%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220509013257937.png" alt="image-20220509013257937" style="zoom:50%;" /> <img src="https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220509013257937.png" alt="image-20220509013257937" style="zoom:50%;" />
#### 6.gathering部署 #### 6.gathering部署
@ -798,11 +797,11 @@ zuul-deployment-6d76647cf9-jkm7f 1/1 Running 0 12m
注册中心验证: 注册中心验证:
<img src="%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220509005823566.png" alt="image-20220509005823566" style="zoom:50%;" /> <img src="https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220509005823566.png" alt="image-20220509005823566" style="zoom:50%;" />
#### 7.浏览器测试API接口 #### 7.浏览器测试API接口
![image-20220509015035488](%E5%88%A9%E7%94%A8kubernetes%E9%83%A8%E7%BD%B2%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE.assets/image-20220509015035488.png) ![image-20220509015035488](https://xingdian-image.oss-cn-beijing.aliyuncs.com/xingdian-image/image-20220509015035488.png)