当前位置:网站首页>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
边栏推荐
- Qt重绘事件与剪切
- Analysis of InnoDB execution process in MySQL
- I changed to a programmer at the age of 31. Now I'm 34. Let me talk about my experience and some feelings
- Jiachen chapter Genesis "inner universe" joint Edition
- SSL证书退款说明
- 甲辰篇 創世紀《「內元宇宙」聯載》
- Metalama简介4.使用Fabric操作项目或命名空间
- 电脑系统卡如何解决?
- Zero trust in network information security
- How to switch PHP version in Windows 2008 system
猜你喜欢
Recommended programming AIDS: picture tool snipaste
解决disagrees about version of symbol device_create
风尚云网学习-input属性总结
mysql中 innoDB执行过程分析
The maximum number of remote desktop servers has been exceeded
【unity笔记】L4Unity中的基础光照
C set Logo Icon and shortcut icon
Debug Jest test cases in VSCode, debug Jest test cases in VSCode, middle note basedir=$(dirname "$" (echo "$0" sed -e -e, s, \ \, / "-e").
How to solve the computer system card?
传统企业如何应对数字化转型?这些书给你答案
随机推荐
Metalama简介4.使用Fabric操作项目或命名空间
SPSS之单因素方差分析
Lesson 23 temporary objects
QT one process runs another
PHP generates JSON to process Chinese
Solution of asynchronous clock metastability -- multi bit signal
bert-base-chinese下载(智取)
leetcode:437. 路径总和 III【dfs 选还是不选?】
MySQL函数-递归函数
Web17 -- use of El and JSTL
洛谷P5540 [BalkanOI2011] timeismoney | 最小乘积生成树 题解
一个平面设计师的异想世界|ONES 人物
Metalama简介4.使用Fabric操作项目或命名空间
Qt一个进程运行另一个进程
On using go language to create websocket service
NPDP|产品经理如何做到不会被程序员排斥?
【vulnhub靶场】-dc2
【unity笔记】L4Unity中的基础光照
数组---
硬核解析Promise对象(这七个必会的常用API和七个关键问题你都了解吗?)