RKE部署高可用k8s集群

一、安装准备

  • 硬件资源:
    服务器: 4台 8核16G

  • 文档:

  • https://rancher.com/docs/rancher/v2.x/en/installation/

  • https://rancher.com/docs/rke/latest/en/config-options/

初始化安装(所有节点操作)

1、替换yum源

mkdir /root/repo-old && mv /etc/yum.repo.d/* /root/repo-old
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all && yum makecache
yum update

2、关闭防火墙

sed -i '/^SELINUX/s/enforcing/disabled/' /etc/selinux/config
setenforce 0
cat >> /etc/sysctl.conf << END
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
END
modprobe br_netfilter
sysctl -p
hostnamectl set-hostname master01
swapoff -a
sed -i '/swap/s/^/#/g' /etc/fstab
mount -a
GRUB_CMDLINE_
上一篇:STM32+W5500网络通信


下一篇:kvm总结复习