官网: https://www.kubesphere.io/
yum install socat ipvsadm ipset sysstat conntrack libseccomp nfs-utils ntpdate -y
cat > /etc/modules-load.d/ipvs.conf << EOF
ip_vs
ip_vs_lc
ip_vs_wlc
ip_vs_rr
ip_vs_wrr
ip_vs_lblc
ip_vs_lblcr
ip_vs_dh
ip_vs_sh
ip_vs_nq
ip_vs_sed
ip_vs_ftp
ip_vs_sh
nf_conntrack_ipv4
ip_tables
ip_set
xt_set
ipt_set
ipt_rpfilter
ipt_REJECT
ipip
EOF
systemctl enable --now systemd-modules-load.service
curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.7 sh -
chmod +x kk
./kk create config --with-kubernetes v1.23.6 --with-kubesphere v3.3.2
# 节点所有 IP 使用私网的IP地址
# CLB 负载均衡
# domain: lb.kubesphere.local
# address: "119.28.206.46"
# port: 6443
# 设置 CLB 负载转发 6443, 30880
# nfs: mkdir -p /home/nfs/dynamic
# 添加动态存储,这里使用 nfs: https://www.kubesphere.io/zh/docs/v3.3/installing-on-linux/persistent-storage-configurations/install-nfs-client/
# 部署
./kk create cluster -f config-sample.yaml
公有云 LB 上使用方式访问,需要部署 ingress-nginx , 如何部署略 需要在**应用路由**
中加上 kubernetes.io/ingress.class = nginx 注解表示符
Console: http://xxxxx:30880
Account: admin
Password: P@88w0rd
# 修改配置,添加节点信息
./kk add nodes -f config-sample.yaml
./kk delete node <nodeName> -f config-sample.yaml
./kk create config --from-cluster