当前位置:网站首页>[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
边栏推荐
- Are there any risks for the top ten securities companies to register and open accounts? Is it safe?
- 在线协作文档综合评测 :Notion、FlowUs、Wolai、飞书、语雀、微软 Office、谷歌文档、金山文档、腾讯文档、石墨文档、Dropbox Paper、坚果云文档、百度网盘在线文档
- 主从复制系统设计
- YOLOv6:又快又准的目标检测框架开源啦
- Leetcode (452) - detonate the balloon with the minimum number of arrows
- Talk about my remote work experience | community essay solicitation
- Which securities company is the most convenient, safe and reliable for opening an account
- LabVIEW Arduino TCP/IP远程智能家居系统(项目篇—5)
- Leetcode (763) -- dividing letter ranges
- DAST black box vulnerability scanner part 5: vulnerability scanning engine and service capability
猜你喜欢

协同过滤进化版本NeuralCF及tensorflow2实现

大龄程序员的一些出路
![leetcode:1567. Length of the longest subarray whose product is a positive number [dp[i] indicates the maximum length ending with I]](/img/a4/c5c31de7a0a3b34a188bfec0b5d184.png)
leetcode:1567. Length of the longest subarray whose product is a positive number [dp[i] indicates the maximum length ending with I]

Icml2022 | neurotoxin: a lasting back door to federal learning

About appium trample pit: encountered internal error running command: error: cannot verify the signature of (solved)

The latest 2022 research review of "continuous learning, CL"

【题解】剑指 Offer 15. 二进制中1的个数(C语言)

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]
![[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]
随机推荐
Test comparison of linear model LN, single neural network SNN, deep neural network DNN and CNN
vulnhub之dc8
矩阵求导及其链式法则
Vulnhub's DC8
Can compass open an account for stock trading? Is it safe?
Leetcode (763) -- dividing letter ranges
LabVIEW Arduino TCP/IP远程智能家居系统(项目篇—5)
在Flutter中解析复杂的JSON
Is it safe for CICC fortune to open an account? I want to open an account to speculate in stocks.
Which platform is the safest for buying stocks and opening accounts? Ask for sharing
模块五作业
YOLOv6:又快又准的目标检测框架开源啦
Unity布料系统_Cloth组件(包含动态调用相关)
Yolov6: un cadre de détection de cibles rapide et précis est Open Source
简析攻防演练中蓝队的自查内容
【混合编程jni 】第十二篇 jnaerator
SAP Spartacus 默认路由配置的工作原理
美术向的Unity动画知识
Flutter 中 ValueNotifier<List<T>> 监听问题解决
不花一分钱做个在线的gif合成服务