1. 安装要求
在开始之前,部署Kubernetes集群机器需要满足以下几个条件:
一台或多台机器,操作系统 CentOS7.x-86_x64
硬件配置:2GB或更多RAM,2个CPU或更多CPU,硬盘30GB或更多
可以访问外网,需要拉取镜像,如果服务器不能上网,需要提前下载镜像并导入节点
禁止swap分区
2. 准备环境
角色 | IP |
k8s-master | 192.168.98.127 |
k8s-node1 | 192.168.98.128 |
k8s-node2 | 192.168.98.129 |
# 关闭防火墙
<
systemctl status firewalld
systemctl disable firewalld
systemctl stop firewalld