rancher 离线安装redis

Last updated on November 20, 2024 am

🧙 Questions

离线安装redis

☄️ Ideas

参考mysql安装

资源下载

docker pull --platform=linux/amd64 redis:6.0.4
docker save -o /Users/ispong/OneDrive/Downloads/docker/redis-6.0.4-amd64.tar redis:6.0.4

导入镜像

需要资源找我要

scp /Users/ispong/OneDrive/Downloads/docker/redis-6.0.4-amd64.tar root@47.92.37.247:/tmp
docker load -i /tmp/redis-6.0.4-amd64.tar
docker tag redis:6.0.4 isxcode:8443/library/redis:6.0.4
docker push isxcode:8443/library/redis:6.0.4

创建目录

mkdir -p /data/redis

创建department

Container Name: isxcode-redis
Image: docker.io/library/redis:6.0.4
Pull Policy: IfNotPresent
Pull Secrets: local-harbor

端口号

Service Type: Node Port
Name: redis-port
Private Container Port: 6379
Protocol: TCP
Listening: 30119

挂载磁盘

Mount Point -> Sub Path in Volume
/data -> data
/redis.conf -> conf/redis.conf


rancher 离线安装redis
https://ispong.isxcode.com/kubernetes/rancher/rancher 离线安装redis/
Author
ispong
Posted on
July 29, 2024
Licensed under