当前位置:网站首页>[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
边栏推荐
- 关于appium踩坑 :Encountered internal error running command: Error: Cannot verify the signature of (已解决)
- CVPR 2022 | 美团技术团队精选论文解读
- 【混合编程jni 】第十二篇 jnaerator
- Is there any risk in registering and opening an account for stock speculation? Is it safe?
- Installation avec homebrew dans un environnement Mac OS [email protected]
- leetcode:1567. Length of the longest subarray whose product is a positive number [dp[i] indicates the maximum length ending with I]
- Test comparison of linear model LN, single neural network SNN, deep neural network DNN and CNN
- Vulnhub's dc9
- random_ normal_ Initializer uses
- 股票炒股注册开户有没有什么风险?安全吗?
猜你喜欢

Yolov6: the fast and accurate target detection framework is open source
![[fundamentals of image processing] GUI image curve adjustment system based on MATLAB [including Matlab source code 1923]](/img/e8/6342f2dc6e7f06a847852ce4b40719.jpg)
[fundamentals of image processing] GUI image curve adjustment system based on MATLAB [including Matlab source code 1923]
![[leetcode]- linked list-2](/img/f7/9d4b01285fd6f7fa9f3431985111b0.png)
[leetcode]- linked list-2

Vulnhub's DC8

Convolutional neural network (CNN) explanation and tensorflow2 code implementation

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,

KDD2022 | 基于知识增强提示学习的统一会话推荐系统
![leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]](/img/16/8dc63e6494b3f23e2685e287abc94c.png)
leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]

vulnhub之dc8

矩阵求导及其链式法则
随机推荐
MATLAB与Mysql数据库连接并数据交换(基于ODBC)
在哪个平台买股票开户最安全?求分享
leetcode:141. Circular linked list [hash table + speed pointer]
SAP Spartacus 中的依赖注入 Dependency Injection 介绍
ICML2022 | Neurotoxin:联邦学习的持久后门
AI智能抠图工具--头发丝都可见
LabVIEW Arduino tcp/ip remote smart home system (project part-5)
Icml2022 | neurotoxin: a lasting back door to federal learning
vulnhub之dc8
AI intelligent matting tool - hair can be seen
How to create an OData service with the graphical modeler on the sap BTP platform
Web crawler 2: crawl the user ID and home page address of Netease cloud music reviews
How SAP Spartacus default routing configuration works
Module externe unity3d anyportrait 2D Skeleton Animation
random_ normal_ Initializer uses
美术向的Unity动画知识
网络爬虫2:抓取网易云音乐评论用户ID及主页地址
Matrix derivation and its chain rule
numpy中mgrid的用法
How to write test cases and a brief introduction to go unit test tool testify