安装K8s(四)-安装Kubeadm
以下命令要在所有node上执行: 1.禁用swap: vi /etc/sysctl.d/swap.conf vm.swappiness = 0 swapoff -a #关闭swap挂载 sed -i 's/\/dev\/mapper\/centos-swap/#\/dev\/mapper\/centos-swap/g' /etc/fstab 2.配置iptables: vi ...
以下命令要在所有node上执行: 1.禁用swap: vi /etc/sysctl.d/swap.conf vm.swappiness = 0 swapoff -a #关闭swap挂载 sed -i 's/\/dev\/mapper\/centos-swap/#\/dev\/mapper\/centos-swap/g' /etc/fstab 2.配置iptables: vi ...
1.安装 ntp 时间同步服务: yum install -y ntp systemctl start ntpd systemctl enable ntpd 2.设置国内时区: # ll /etc/localtime # cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime echo "Asia/Shanghai" > /etc...
1.删除老版本docker: yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ ...
1.移走并备份所有的repo文件: cp -rp /etc/yum.repos.d /etc/yum.repos.d.bak 2.使用阿里源: wget -O /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel-7.repo ...