软硬件以及系统的要求
| 软硬件 |
最低配置 |
我的配置 |
| CPU和内存 |
Master:至少2 core和4GB内存<br />Node:至少4core和16GB内存 |
Master:2core、2GB内存和20GB SSD<br />Node:4core、4GB内存和20GB SSD |
| linux操作系统 |
kernel版本要求至少在3.10及以上 |
CentOS7(mini) |
| etcd |
3.0版本及以上 |
3.3 |
| docker |
18.03及以上 |
18.09 |
系统的一些配置(Master和Node)
关闭防火墙
iptables -F
iptables -L

image.png
systemctl stop firewalld
systemctl disable firewalld

image.png
关闭SElinux
setenforce 0

image.png
vim /etc/sysconfig/selinux
# 将里面的SELINUX配置为disabled
SELINUX=disabled

image.png

image.png

image.png
关闭交换空间(需要重启)
swapoff -a
vim /etc/fstab
# 注释关于swap的那一行

image.png

image.png
同步时间服务器
# 安装ntpdate
yum install ntpdate -y
# 添加定时任务
crontab -e
0-59/10 * * * * /usr/sbin/ntpdate us.pool.ntp.org | logger -t NTP
# 先手动同步一次
ntpdate us.pool.ntp.org

image.png

image.png

image.png
需要安装的软件
yum install openssh-server -y # ssh服务
yum install vim -y # 编辑器
yum install wget -y # 下载工具
yum install net-tools -y # 网络工具
网友评论