基于 SealOS 安装
前置条件
- 每个集群节点应该有不同的主机名。 主机名不要带下划线
- 所有节点的时间同步
- 在 Kubernetes 集群的第一个节点上运行sealos run命令,目前集群外的节点不支持集群安装
- 建议使用干净的操作系统来创建集群。不要自己装 Docker
- 支持大多数 Linux 发行版,例如:Ubuntu CentOS Rocky linux
- 支持 DockerHub 中支持的 Kubernetes 版本
- 支持使用 containerd 作为容器运行时
- 在公有云上请使用私有 IP
二进制下载
- amd64
- arm64
$ wget https://github.com/labring/sealos/releases/download/v4.0.0/sealos_4.0.0_linux_amd64.tar.gz \
&& tar zxvf sealos_4.0.0_linux_amd64.tar.gz sealos && chmod +x sealos && mv sealos /usr/bin
$ wget https://github.com/labring/sealos/releases/download/v4.0.0/sealos_4.0.0_linux_arm64.tar.gz \
&& tar zxvf sealos_4.0.0_linux_arm64.tar.gz sealos && chmod +x sealos && mv sealos /usr/bin
安装 KubeGems
sealos run \
--masters xxx,xxx --nodes xxx,xxx,xxx -p pwd \
labring/kubernetes:v1.23.10 \
labring/helm:v3.8.2 \
labring/calico:v3.22.1 \
labring/coredns:v0.0.1 \
labring/openebs:v1.9.0 \
kubegems/kubegems-stack:v1.23
KubeGems stack 版本
您可以在访问 Docker DockerHub 仓库查找 kubegems/kubegems-stack 的镜像版本
提示
通过 SealOS 一键安装的 KubeGems 数据存储在 OpenEBS 的LocalPV 上,它位于某一台物理机上,不具备数据迁移功能。
如果您的环境具备共享存储或者更高规格的存储服务,建议您使用 SealOS 只用于部署 Kubernetes 集群!
安装成功后,您将看到如下打印的信息
2022-10-07T01:00:05 info guest cmd is bash kubegems.sh
Release "kubegems-installer" does not exist. Installing it now.
NAME: kubegems-installer
LAST DEPLOYED: Fri Oct 7 01:00:05 2022
NAMESPACE: kubegems-installer
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: kubegems-installer
CHART VERSION: 1.23.0
APP VERSION: 1.23.0
** Please be patient while the chart is being deployed **
%%Instructions to access the application depending on the serviceType and other considerations%%
Release "kubegems" does not exist. Installing it now.
NAME: kubegems
LAST DEPLOYED: Fri Oct 7 01:00:08 2022
NAMESPACE: kubegems
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: kubegems
CHART VERSION: 1.23.0
APP VERSION: 1.23.0
** Please be patient while the chart is being deployed **
%%Instructions to access the application depending on the serviceType and other considerations%%
visit http://172.31.136.79:32529, user: admin password: demo!@#admin
2022-10-07T01:00:11 info succeeded in creating a new cluster, enjoy it!
2022-10-07T01:00:11 info
___ ___ ___ ___ ___ ___
/\ \ /\ \ /\ \ /\__\ /\ \ /\ \
/::\ \ /::\ \ /::\ \ /:/ / /::\ \ /::\ \
/:/\ \ \ /:/\:\ \ /:/\:\ \ /:/ / /:/\:\ \ /:/\ \ \
_\:\~\ \ \ /::\~\:\ \ /::\~\:\ \ /:/ / /:/ \:\ \ _\:\~\ \ \
/\ \:\ \ \__\ /:/\:\ \:\__\ /:/\:\ \:\__\ /:/__/ /:/__/ \:\__\ /\ \:\ \ \__\
\:\ \:\ \/__/ \:\~\:\ \/__/ \/__\:\/:/ / \:\ \ \:\ \ /:/ / \:\ \:\ \/__/
\:\ \:\__\ \:\ \:\__\ \::/ / \:\ \ \:\ /:/ / \:\ \:\__\
\:\/:/ / \:\ \/__/ /:/ / \:\ \ \:\/:/ / \:\/:/ /
\::/ / \:\__\ /:/ / \:\__\ \::/ / \::/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/
Website :https://www.sealos.io/
Address :github.com/labring/sealos
访问 KubeGems 仪表盘
执行命令kubectl get svc -n kubegems
,获取kubegems-dashboard
服务的 nodeport 端口
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubegems-api ClusterIP 10.96.3.233 <none> 80/TCP,9100/TCP 6h20m
kubegems-argo-cd-app-controller ClusterIP 10.96.0.14 <none> 8082/TCP 6h20m
kubegems-argo-cd-repo-server ClusterIP 10.96.2.128 <none> 8081/TCP 6h20m
kubegems-argo-cd-server ClusterIP 10.96.3.171 <none> 80/TCP,443/TCP 6h20m
kubegems-chartmuseum ClusterIP 10.96.3.226 <none> 8080/TCP 6h20m
kubegems-dashboard NodePort 10.96.3.13 <none> 80:31347/TCP,9100:32409/TCP 6h20m
kubegems-gitea-http ClusterIP None <none> 3000/TCP 6h20m
kubegems-gitea-ssh ClusterIP None <none> 22/TCP 6h20m
kubegems-msgbus ClusterIP 10.96.3.235 <none> 80/TCP,9100/TCP 6h20m
kubegems-mysql ClusterIP 10.96.3.7 <none> 3306/TCP 6h20m
kubegems-mysql-headless ClusterIP None <none> 3306/TCP 6h20m
kubegems-redis-headless ClusterIP None <none> 6379/TCP 6h20m
kubegems-redis-master ClusterIP 10.96.2.114 <none> 6379/TCP 6h20m
kubegems-worker ClusterIP 10.96.2.239 <none> 80/TCP,9100/TCP 6h20m
登录信息
您可以通过在浏览器输入: http://<Master_IP>:31347 ,即可访问仪表盘
用户名: admin
登录密码: demo!@#admin
下一步
请移步 快速入门 进行 Kubernetes集群导入 设置