kubesphere快速搭建集群

发布时间 2023-09-20 19:36:35作者: 万雨

1,资源准备

mkdir -p /opt/kubesphere
cd /opt/kubesphere
curl -sfL https://get-kk.kubesphere.io | VERSION=v3.1.0-alpha.4 sh -

chmod +x kk
./kk create config --with-kubernetes v1.26.8 --with-kubesphere v3.4.0
# 修改里面一些设置项(k8s的版本、节点信息等等)

2,集群搭建

export KKZONE=cn
# 服务器在国区一定要执行上面的命令,否则大概率会卡在下载工具资源的步骤
./kk create cluster -f config-sample.yaml

剩下的就是静静等待即可,一般4节点集群大概需要花费15分钟左右(主要耗费时间的部分在下载资源的部分)

参考链接:

  1. k8s更改nodePort端口可用范围
  2. KubeKey 安装一直卡在下载Downloading helm ... - KubeSphere 开发者社区