手把手教你一套完善且高效的k8s离线部署方案

时间:2022-12-20 11:12:41

作者:郝建伟

背景

面对更多项目现场交付,偶而会遇到客户环境不具备公网条件,完全内网部署,这就需要有一套完善且高效的离线部署方案。

系统资源

编号 主机名称 IP 资源类型 CPU 内存 磁盘
01 k8s-master1 10.132.10.91 CentOS-7 4c 8g 40g
02 k8s-master1 10.132.10.92 CentOS-7 4c 8g 40g
03 k8s-master1 10.132.10.93 CentOS-7 4c 8g 40g
04 k8s-worker1 10.132.10.94 CentOS-7 8c 16g 200g
05 k8s-worker2 10.132.10.95 CentOS-7 8c 16g 200g
06 k8s-worker3 10.132.10.96 CentOS-7 8c 16g 200g
07 k8s-worker4 10.132.10.97 CentOS-7 8c 16g 200g
08 k8s-worker5 10.132.10.98 CentOS-7 8c 16g 200g
09 k8s-worker6 10.132.10.99 CentOS-7 8c 16g 200g
10 k8s-harbor&deploy 10.132.10.100 CentOS-7 4c 8g 500g
11 k8s-nfs 10.132.10.101 CentOS-7 2c 4g 2000g
12 k8s-lb 10.132.10.120 lb内网 2c 4g 40g