zl程序教程

您现在的位置是:首页 >  后端

当前栏目

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

Kubernetesk8s案例入门 -- 实战 精通 第三章
2023-09-14 09:09:05 时间

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