在 centos7部署kubephere
kubephere web界面
多节点安装的话 (一台master,一台node) master和node cpu最少为2核 内存4G 硬盘40G
- 所有节点必须都能通过
SSH
访问。 - 所有节点时间同步。
- 所有节点都应使用
sudo
/curl
/openssl
/tar
。
集群必须有一个可用的容器运行时。如果您使用 KubeKey 搭建集群,KubeKey 会默认安装最新版本的 Docker。
KubeKey 可以一同安装 Kubernetes 和 KubeSphere。根据要安装的 Kubernetes 版本,需要安装的依赖项可能会不同。
k8s版本 >1.18 的话 必须安装 socat 和 containerd
master和node都需要 yum install -y socat yum install containerd -y
都需要关闭火墙
请确保 /etc/resolv.conf
中的 DNS 地址可用
确保 master节点能够ssh 连接node节点
1.先执行以下命令以确保您从正确的区域下载
export KKZONE=cn KubeKey。
2.执行以下命令下载 KubeKey
curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.7 sh -
chmod +x kk
3.创建集群 对于多节点安装,您需要通过指定配置文件来创建集群。
./kk create config --with-kubernetes v1.23.10 --with-kubesphere v3.3.0 -f test.yaml
vim test.yaml
更改相关配置
./kk create cluster -f test.yaml