騰訊云2c4g服務(wù)器搭建k8s環(huán)境,直接上步驟
安裝依賴
yum install conntrack socat ipset ipvsadm ebtables -y
設(shè)置主機(jī)名
hostnamectl set-hostname k8s-master01
安裝kubekey
export KKZONE=cn
curl -sfL https://get-kk.kubesphere.io | VERSION=v2.2.1 sh -
chmod +x kk
創(chuàng)建配置
./kk create config with-kubernetes 1.22.16 -f 1.22.yaml
修改配置
主要是主機(jī)名姓惑、ip、賬號(hào)和密碼
開始安裝k8s
./kk create config with-kubernetes 1.22.16 -f 1.22.yaml
結(jié)束
多節(jié)點(diǎn)安裝參考:
https://blog.csdn.net/qq_35583325/article/details/131856414