
软件版本
系统版本:CentOS Linux release 7.6.1810 (Core)
软件版本:Docker-ce-18.06.0、Kubectl-1.15.0、Kubernetes-v1.15.0
硬件要求:建议最低2核4GB
配置系统环境
关闭防火墙和SeLinux
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i 's/SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux
关闭SWAP交换分区
swap:
1. 临时关闭 swapoff -a
2. 永久禁用 注释掉/etc/fstab文件中“/dev/mapper/centos-swap”这一行:
3. 重新加载:
sysctl --system
安装Docker
配置Docker-YUM源
Docker-YUM源由阿里巴巴开源镜像网提供。
yum -y install epel-release.noarch yum-utils
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
打开文件/usr/lib/sys

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



