当前位置:网站首页>[cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process
[cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process
2022-06-26 22:04:00 【Silicon based workshop of slow fire rock sugar】
Author URI ( Silicon based workshop of slow fire rock sugar ): Slow fire rock sugar ( Wang Wenbing ) The blog of _ Silicon based workshop of slow fire rock sugar _CSDN Blog
Website of this article :https://blog.csdn.net/HiWangWenBing/article/details/122930680
Catalog
The first 1 Step : precondition
1.1 stay Kubesphere Select project space ( Namespace )
1.2 stay dockerhub find Redis Required configuration parameters for deployment
1.3 Redis server Deployment planning
1.4 Pre created outside the microservice PVC Persistent volume
1.5 Configuration files created outside the microservice in advance
The first 2 Step : Deploy Redis Microservices
2.2 Hang on external persistent volumes
2.3 Mount external configuration file
2.4 Check the image installation
step 3: by Redis Deployment creation Service object
3.1 establish clusterIP service object ( Only internal cluster access )
3.2 establish NodePort service object ( Microservices can be accessed through the public network )
Preface :
Redis It is the middleware of microservice business application , It's also a microservice , It can be deployed separately , Follow the basic process of microservice deployment .
The first 1 Step : precondition
1.1 stay Kubesphere Select project space ( Namespace )
1.2 stay dockerhub find Redis Required configuration parameters for deployment
(1)docker hub Home page
(2)search “redis”

# start a redis instance
$ docker run --name some-redis -d redis
# start with persistent storage
$ docker run --name some-redis -d redis redis-server --save 60 1 --loglevel warning
# Specify profile
$ docker run -v /myredis/conf:/usr/local/etc/redis --name myredis redis redis-server /usr/local/etc/redis/redis.conf
# connecting via redis-cli
$ docker run -it --network some-network --rm redis redis-cli -h some-redis1.3 Redis server Deployment planning
- PVC be used for Redis Use on the outside of the container ( Write ) Persistent business data of microservices
- ConfigMap be used for Redis Use outside the container ( read ) The configuration file
1.4 Pre created outside the microservice PVC Persistent volume
The method can be the same as mysql, But here we do not create , from Kubesphere When creating microservices , Automatically create ( The recommendation )
1.5 Configuration files created outside the microservice in advance
# configuration for redis
appendonly yes
port 6379
bind 0.0.0.0
The first 2 Step : Deploy Redis Microservices
2.1 Install container image



2.2 Hang on external persistent volumes
2.3 Mount external configuration file
2.4 Check the image installation


Enter the container to confirm whether the contents of the container's configuration file are correct :

step 3: by Redis Deployment creation Service object
3.1 establish clusterIP service object ( Only internal cluster access )
Names are hard to remember , Delete the default service , Create a new clusterIP service

3.2 establish NodePort service object ( Microservices can be accessed through the public network )


Outside the cluster ( Public network host ), adopt redis Client access Redis service
(1) install Redis Database access client -vistual studio code
Visual Studio Code - Code Editing. Redefined
(2) Through client access Redis The server


(3) install redis desktop mananger( charge )


Author URI ( Silicon based workshop of slow fire rock sugar ): Slow fire rock sugar ( Wang Wenbing ) The blog of _ Silicon based workshop of slow fire rock sugar _CSDN Blog
Website of this article :https://blog.csdn.net/HiWangWenBing/article/details/122930680
边栏推荐
- Is it safe to buy stocks and open accounts through the account QR code of the CICC securities manager? Want to open an account for stock trading
- CVPR 2022 - Interpretation of selected papers of meituan technical team
- Shiniman household sprint A shares: annual revenue of nearly 1.2 billion red star Macalline and incredibly home are shareholders
- In 2022, where will the medium and light-weight games go?
- Unity3D插件 AnyPortrait 2D骨骼动画制作
- DLA model (classification model + improved segmentation model) + deformable convolution
- How to analyze financial expenses
- What is the “ How to remove a custom form list?
- Unity cloth system_ Cloth component (including dynamic call related)
- 在哪家券商公司开户最方便最安全可靠
猜你喜欢

YuMinHong: New Oriental does not have a reversal of falling and turning over, destroying and rising again

Listing of maolaiguang discipline on the Innovation Board: it is planned to raise 400million yuan. Fanyi and fanhao brothers are the actual controllers

How to analyze financial expenses

leetcode:6103. 从树中删除边的最小分数【dfs + 联通分量 + 子图的值记录】

【图像处理基础】基于matlab GUI图像曲线调整系统【含Matlab源码 1923期】

The sharp sword of API management -- eolink

Module 5 operation

MATLAB与Mysql数据库连接并数据交换(基于ODBC)

Implementation of collaborative filtering evolution version neuralcf and tensorflow2
![[mathematical modeling] spanning tree based on Matlab GUI random nodes [including Matlab source code 1919]](/img/0c/17efaaa2488451b6dd15d9db33eba7.jpg)
[mathematical modeling] spanning tree based on Matlab GUI random nodes [including Matlab source code 1919]
随机推荐
Final part of web crawler: send directional messages to 100000 Netease cloud users
The sharp sword of API management -- eolink
【图像处理基础】基于matlab GUI图像曲线调整系统【含Matlab源码 1923期】
Talk about my remote work experience | community essay solicitation
Using C to operate SQLSERVER database through SQL statement tutorial
Unity布料系統_Cloth組件(包含動態調用相關)
[leetcode]- linked list-2
AI智能抠图工具--头发丝都可见
Parsing complex JSON in fluent
打新债注册开户有没有什么风险?安全吗?
leetcode:141. 环形链表【哈希表 + 快慢指针】
leetcode:710. 黑名单中的随机数【映射思维】
The network connection is disconnected. Please refresh and try again
LabVIEW Arduino tcp/ip remote smart home system (project part-5)
Fastadmin Aurora push send message registration_ Multiple IDs are invalid after being separated by commas
在哪个平台买股票开户最安全?求分享
AI intelligent matting tool - hair can be seen
如何在 SAP BTP 平台上启用 HANA Cloud 服务
leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]
vulnhub之dc8