y49.第三章 Kubernetes从入门到精通 -- k8s实战案例(二二)

9.k8s实战案例

9.1 实战案例之Redis 服务

在k8s环境中运行redis服务

9.1.1 构建redis镜像

9.1.1.1 镜像文件

root@k8s-master1:/opt/k8s-data/dockerfile/web/raymond/redis# tree
.
├── Dockerfile
├── build-command.sh
├── redis-4.0.14.tar.gz
├── redis.conf
└── run_redis.sh

0 directories, 5 files

#redis配置文件
root@k8s-master1:/opt/k8s-data/dockerfile/web/raymond/redis# cat redis.conf 
# Redis configuration file example.
#
# Note that in order to read the configuration file, Redis must be
# started with

猜你喜欢

转载自blog.csdn.net/qq_25599925/article/details/124822698