一、POC环境架构
二、Rancher基础环境
计算资源
序号 |
配置 |
内网IP |
公网IP |
||
CPU |
MEM |
DISK |
|||
1 |
4 |
8 |
根分区:20G 附加磁盘50G |
192.168.1.2 |
xxx |
2 |
192.168.1.5 |
无 |
|||
3 |
192.168.1.6 |
无 |
|||
4 |
192.168.1.7 |
无 |
|||
5 |
192.168.1.8 |
无 |
网络映射:
192.168.1.2:22 ---> xxx:20002 ssh
192.168.1.2:443 ---> xxx:8443 web
192.168.1.2:80 ---> xxx:8088 web
192.168.1.5:9999 ---> xxx:9999 pigx-gateway
192.168.1.5:9980 ---> xxx:9980 pigx-ui
192.168.1.7:80 ---> xxx:8081 harbor
192.168.1.7:9200 ---> xxx:9200 es (待添加映射)
192.168.1.7:5601 ---> xxx:9601 kibana(待添加映射)
192.168.1.8:8080 ---> xxx:8080 jenkins
192.168.1.8:80 ---> xxx:8082 gitlab
三、POC环境搭建
1. 操作系统准备概要(centos7)
1)支持的Docker版本
1.12.6
1.13.1
17.03.2
17.06 (for Windows)
2)主机名配置
因为K8S的规定,主机名只支持包含 - 和 .(中横线和点)两种特殊符号,并且主机名不能出现重复。
3)更新Hosts
配置每台主机的hosts(/etc/hosts),添加host_ip $hostname到/etc/hosts文件中。
4)centos关闭selinux
sudo sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
5) 关闭防火墙(可选)或者放行相应端口
- 关闭防火墙
systemctl stop firewalld.service && systemctl disable firewalld.service
端口需求
查看:https://www.cnrancher.com/docs/rancher/v2.x/cn/installation/references/
6)配置主机时间、时区、系统语言
- 查看时区
dat