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_
标签:etc,repo,RKE,集群,https,rancher,yum,k8s,com 来源: https://blog.csdn.net/m0_37727670/article/details/119347008