一、挂载存储及配置文件
1.1、创建存储
选择nfs形式
1.2、创建配置文件
appendonly yes
port 6379
bind 0.0.0.0
二、创建有状态的工作负载
2.1、容器设置
注意配置启动命令跟参数
redis-server
/etc/redis/redis.conf
2.2、挂载存储卷
2.3、挂载配置文件
三、创建服务
选择nfs形式
appendonly yes
port 6379
bind 0.0.0.0
注意配置启动命令跟参数
redis-server
/etc/redis/redis.conf
评论区