腾讯云2c4g服务器搭建k8s环境,直接上步骤
安装依赖
yum install conntrack socat ipset ipvsadm ebtables -y
设置主机名
hostnamectl set-hostname k8s-master01
安装kubekey
export KKZONE=cn
curl -sfL https://get-kk.kubesphere.io | VERSION=v2.2.1 sh -
chmod +x kk
创建配置
./kk create config with-kubernetes 1.22.16 -f 1.22.yaml
修改配置
主要是主机名、ip、账号和密码

开始安装k8s
./kk create config with-kubernetes 1.22.16 -f 1.22.yaml
结束

多节点安装参考:
https://blog.csdn.net/qq_35583325/article/details/131856414
网友评论