当前位置:网站首页>Redis deployment of cloud native kubesphere
Redis deployment of cloud native kubesphere
2022-04-23 12:39:00 【Love pocket sky】
1、 Reference use docker Deploy redis Steps for
1.1、 Prepare out of container persistence redis The path to the configuration file
mkdir -p /mydata/redis/conf
1.2、 Get ready redis Profile contents ,vim /mydata/redis/conf/redis.conf
## Configuration example appendonly yes port 6379 bind 0.0.0.0
1.3、docker start-up redis
docker run -d -p 6379:6379 --restart=always \ -v /mydata/redis/conf/redis.conf:/etc/redis/redis.conf \ -v /mydata/redis-01/data:/data \ --name redis-01 redis:6.2.5 \ redis-server /etc/redis/redis.conf
2、kubesphere Yes redis Deployment Analysis
1、 Deployment Analysis
/data: take redis Persistent data files to pvc Resources
/etc/redis: Put... In this directory redis.conf The file is mapped to ConfigMap in
redis-server /etc/redis/redis.conf: Execute... With this command redis Start command
3、 Start deployment ConfigMap To map redis.conf Configuration information
1、 Enter the configuration center -》 To configure
![]()
2、 Start creating configuration file
Click Create :
ok, The configuration file is mounted !
4、 Now let's start creating redis Stateful replica set of
1、 Enter the path to create a stateful replica set
2、 Start to create
Click next :
Continue setting down redis Resources for :
Next, configure the startup command :
Click synchronize host time zone :
preservation , And then click next :
Click next :
![]()
Here we want to add Volume template , Because we didn't create the storage volume in advance :
Click save :
Next, click mount configuration file :
Click save :
![]()
Click Create :
The final result :
5、 visit redis
1、 The default is intranet access
First, let's access and view through the terminal intranet :
2、 You can see that we use the mount volume template ,kubesphere By default, we created pvc
3、 Create out of cluster access
![]()
![]()
![]()
The creation is complete :
Use client access on the Internet redis, You can see that the exposed ports above are 30142:
6、 It can be adjusted dynamically with one key redis replications
For example, we choose 3 individual :
![]()
版权声明
本文为[Love pocket sky]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231236522970.html
边栏推荐
猜你喜欢
【unity笔记】L4Unity中的基础光照
Xinwangda announced that the price of battery products had been increased, and the investment of "weixiaoli" exceeded 1 billion
CGC: contractual graph clustering for community detection and tracking
What are the forms of attack and tampering on the home page of the website
实现一个盒子在父盒子中水平垂直居中的几种“姿势”
力扣刷题之完全二叉树的节点个数
box-sizing
Outsourcing for five years, abandoned
box-sizing
Plato Farm-以柏拉图为目标的农场元宇宙游戏
随机推荐
QT draw image
S2-062 remote command execution vulnerability recurrence (cve-2021-31805)
Outsourcing for five years, abandoned
Idea setting copyright information
Web17 -- use of El and JSTL
I changed to a programmer at the age of 31. Now I'm 34. Let me talk about my experience and some feelings
Qt双缓冲绘图
Introduction to metalama 4 Use fabric to manipulate items or namespaces
Jiachen chapter Genesis "inner universe" joint Edition
A graphic designer's fantasy world | ones characters
Plato Farm-以柏拉图为目标的农场元宇宙游戏
标签与路径
为什么hash%length==hash&(length-1)的前提是 length 是 2 的 n 次方
Introduction to metalama 4 Use fabric to manipulate items or namespaces
Fashion cloud learning - input attribute summary
Qt进程间通信
How to prevent the website from being hacked and tampered with
Qt绘制文字
关于使用Go语言创建WebSocket服务浅谈
洛谷P3236 [HNOI2014]画框 题解