当前位置:网站首页>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.01.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
边栏推荐
- Symmetric encryption, certificate encryption
- 甲辰篇 創世紀《「內元宇宙」聯載》
- 云原生KubeSphere部署Mysql
- QT redraw events and cuts
- [redis series] redis learning 13. Redis often asks simple interview questions
- Qt重绘事件与剪切
- flask项目跨域拦截处理以及dbm数据库学习【包头文创网站开发】
- Hard core parsing promise object (do you know these seven common APIs and seven key questions?)
- 万事有你 未来可期 | ONES 2022校园招聘正式开启
- Kubernetes 入门教程
猜你喜欢

云原生KubeSphere部署Mysql

一个平面设计师的异想世界|ONES 人物
Xinwangda announced that the price of battery products had been increased, and the investment of "weixiaoli" exceeded 1 billion

STM32控制步进电机(ULN2003+28byj)

Bert base Chinese Download (SMART)

Basic software testing Day2 - Case Execution

Analysis of InnoDB execution process in MySQL

How do traditional enterprises cope with digital transformation? These books give you the answer

Idea setting copyright information

网络信息安全之零信任
随机推荐
Qt重绘事件与剪切
BUUCTF WEB [GXYCTF2019]禁止套娃
没有空闲服务器?导入 OVF 镜像快速体验 SmartX 超融合社区版
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
C set Logo Icon and shortcut icon
Source code analysis of synchronousqueue
Luogu p3236 [hnoi2014] picture frame solution
QT double buffer drawing
消息队列概述
A graphic designer's fantasy world | ones characters
Luogu p5540 [balkanoi2011] timeismoney | minimum product spanning tree problem solution
BUUCTF WEB [BUUCTF 2018]Online Tool
QT redraw events and cuts
Fastjson 2 is coming, the performance continues to improve, and it can fight for another ten years
Idea setting copyright information
Lesson 25 static member variables of classes
Buuctf Web [bjdctf2020] zjctf, but so
BUUCTF WEB [BJDCTF2020]The mystery of ip
What are the forms of attack and tampering on the home page of the website
【每日一题】棋盘问题







Next, configure the startup command :
preservation , And then click next :














