6.k8s中运行web服务
当前k8s 运行规划图
6.1 运行nginx
将nginx运行在k8s中并可以从外部访问到nginx的web页面。
6.1.1 Nginx镜像制作规划
基于基础的centos/ubuntu/alpine镜像,制作公司内部基础镜像-Nginx基础镜像–Nginx业务镜像:
6.1.1.1 Centos基础镜像制作
6.1.1.1.1 镜像文件列表
root@k8s-master1:/opt/k8s-data/dockerfile/system/centos# tree
.
├── Dockerfile
├── build-command.sh
├── filebeat-7.12.1-x86_64.rpm
└── filebeat-7.6.2-x86_64.rpm
0 directories, 4 files
</