当前位置:网站首页>[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
边栏推荐
- 线性模型LN、单神经网络SNN、深度神经网络DNN与CNN测试对比
- JupyterLab 常用配置
- 在哪家券商公司开户最方便最安全可靠
- How to create an OData service with the graphical modeler on the sap BTP platform
- Configuring assimp Library in QT environment (MinGW compiler)
- Is there any risk in opening a securities registration account? Is it safe?
- What are the accounting elements
- LabVIEW Arduino TCP/IP远程智能家居系统(项目篇—5)
- 请问CMS里UniAPP版本中的“自定义表单列表如何去掉?
- YOLOv6:又快又准的目標檢測框架開源啦
猜你喜欢
![[fundamentals of image processing] GUI image histogram equalization system based on MATLAB [including Matlab source code 1924]](/img/8a/f5847eef7318f3db54aa2d4405b06a.jpg)
[fundamentals of image processing] GUI image histogram equalization system based on MATLAB [including Matlab source code 1924]

卷积神经网络(CNN)详解及TensorFlow2代码实现

Yolov6: the fast and accurate target detection framework is open source

LabVIEW Arduino tcp/ip remote smart home system (project part-5)

leetcode:6107. 不同骰子序列的数目【dp六个状态 + dfs记忆化】
![Flower shop window layout [dynamic planning]](/img/d9/6b8f9cd0f74e70b313d2571c2ded30.png)
Flower shop window layout [dynamic planning]

VB. Net class library (Advanced - 2 overload)

Comprehensive evaluation of online collaboration documents: note, flowus, WOLAI, Feishu, YuQue, Microsoft office, Google Docs, Jinshan docs, Tencent docs, graphite docs, Dropbox paper, nutcloud docs,

360 mobile assistant is the first to access the app signature service system to help distribute privacy and security

Icml2022 | neurotoxin: a lasting back door to federal learning
随机推荐
Is it safe to open a stock account with the QR code given by the CICC securities manager? I want to open an account
Unity: 脚本缺失 “The referenced script (Unknown) on this Behaviour is missing!“
Introduction to dependency injection in SAP Spartacus
leetcode:141. Circular linked list [hash table + speed pointer]
VB. Net class library (Advanced - 2 overload)
数据治理啥都干
LabVIEW Arduino tcp/ip remote smart home system (project part-5)
Unity布料系統_Cloth組件(包含動態調用相關)
Implementation of collaborative filtering evolution version neuralcf and tensorflow2
leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]
Module 5 operation
Unity animation knowledge of Art
How to enable Hana cloud service on SAP BTP platform
这个算BUG吗?乱填的字母是否可以关闭
网络连接断开请刷新重试
Parsing complex JSON in fluent
同花顺注册开户有没有什么风险?安全吗?
【数学建模】基于matlab GUI随机节点的生成树【含Matlab源码 1919期】
Comprehensive evaluation of online collaboration documents: note, flowus, WOLAI, Feishu, YuQue, Microsoft office, Google Docs, Jinshan docs, Tencent docs, graphite docs, Dropbox paper, nutcloud docs,
「连续学习Continual learning, CL」最新2022研究综述