当前位置:网站首页>[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
边栏推荐
猜你喜欢

大龄程序员的一些出路

Module 5 operation

What are the accounting elements
![leetcode:152. Product maximum subarray [consider DP of two dimensions]](/img/c8/af6a4c969affd151a5214723dffb57.png)
leetcode:152. Product maximum subarray [consider DP of two dimensions]

Word chess based on heuristic search
![leetcode:141. Circular linked list [hash table + speed pointer]](/img/19/f918f2cff9f831d4bbc411fe1b9776.png)
leetcode:141. Circular linked list [hash table + speed pointer]

Implementation of collaborative filtering evolution version neuralcf and tensorflow2

The sharp sword of API management -- eolink

YOLOv6:又快又准的目標檢測框架開源啦

经典Wide & Deep模型介绍及tensorflow 2代码实现
随机推荐
Unity布料系統_Cloth組件(包含動態調用相關)
美术向的Unity动画知识
[fundamentals of image processing] GUI image histogram equalization system based on MATLAB [including Matlab source code 1924]
尚硅谷DolphinScheduler视频教程发布
Flower shop window layout [dynamic planning]
用C#通过sql语句操作Sqlserver数据库教程
【BUG反馈】WebIM在线聊天系统发消息时间问题
矩阵求导及其链式法则
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection
中金证券经理给的开户二维码办理股票开户安全吗?我想开个户
Usage of MGrid in numpy
【图像处理基础】基于matlab GUI图像直方图均衡化系统【含Matlab源码 1924期】
leetcode:141. Circular linked list [hash table + speed pointer]
Is there any risk in opening a new bond registration account? Is it safe?
In 2022, where will the medium and light-weight games go?
【混合编程jni 】第九篇之Jni总结
SAP Commerce Cloud 项目 Spartacus 入门
在哪个平台买股票开户最安全?求分享
股票炒股注册开户有没有什么风险?安全吗?
Are there any risks for the top ten securities companies to register and open accounts? Is it safe?