Skip to main content

基于 SealOS 安装


前置条件

  • 每个集群节点应该有不同的主机名。 主机名不要带下划线
  • 所有节点的时间同步
  • 在 Kubernetes 集群的第一个节点上运行sealos run命令,目前集群外的节点不支持集群安装
  • 建议使用干净的操作系统来创建集群。不要自己装 Docker
  • 支持大多数 Linux 发行版,例如:Ubuntu CentOS Rocky linux
  • 支持 DockerHub 中支持的 Kubernetes 版本
  • 支持使用 containerd 作为容器运行时
  • 在公有云上请使用私有 IP

二进制下载

$ 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

安装 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 \
labring/kubegems:v1.22.2

安装成功后,您将看到如下打印的信息

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.22.2
APP VERSION: 1.22.2

** 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.21.0
APP VERSION: 1.21.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

下一步

请移步 快速入门 进行平台设置