Skip to content

Commit

Permalink
docs: Update docs for installing sealos (#4660)
Browse files Browse the repository at this point in the history
Signed-off-by: Carson Yang <[email protected]>
  • Loading branch information
yangchuansheng authored Apr 3, 2024
1 parent b496a20 commit 15fee3b
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 15 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 53 additions & 10 deletions docs/4.0/i18n/zh-Hans/self-hosting/sealos/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const Highlight = ({children, color}) => (
- 建议使用干净的操作系统来创建集群。**不要自己装 Docker!**
- 支持大多数 Linux 发行版,例如:Ubuntu、Debian、CentOS、Rocky linux。
- **系统内核版本在 5.4 及以上**
- **必须使用 root 用户安装!**

推荐配置:

Expand Down Expand Up @@ -100,7 +101,8 @@ Sealos 需要使用证书来保证通信安全,默认在您不提供证书的
使用 nip.io 作为 Sealos 的域名非常简单,只需在第一个 Master 节点上执行以下命令,并根据提示输入参数:

```bash
$ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring/sealos/main/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh \
$ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring/sealos/v5.0.0-beta4/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh \
--cloud-version=v5.0.0-beta4 \
--image-registry=registry.cn-shanghai.aliyuncs.com --zh \
--proxy-prefix=https://mirror.ghproxy.com
```
Expand All @@ -121,25 +123,30 @@ admin Password: sealos2023

如果你有自己的公网域名,并且想通过公网访问 Sealos,那你就需要准备好公网受信任的 SSL/TLS 证书。你可以通过 acme.sh 等工具自动签发证书,也可以从域名提供商处下载免费证书或者购买商业证书。

:::info注意
如果你的公网 IP 在国内,那么域名必须要备案!
:::

准备好域名证书后,需要将证书放到第一个 Master 节点的某个目录中,例如 `/root/certs/`

:::info注意

您还需要在域名服务商处添加一条该域名的 A 记录,地址解析到第一个 Master 节点的公网 IP 地址。同时还需要添加一条泛解析记录,将该域名的子域名也解析到第一个 Master 节点的公网 IP 地址。

例如 (假设你的域名是 `cloud.example.io`,假设你的 Master 节点内网地址是 `192.168.1.10`):
例如 (假设你的域名是 `cloud.example.io`,假设你的 Master 节点公网地址是 `192.168.1.10`):

```bash
cloud.example.io A 192.168.1.1
*.cloud.example.io A 192.168.1.1
cloud.example.io A 192.168.1.10
*.cloud.example.io A 192.168.1.10
```

:::

然后在第一个 Master 节点上执行以下命令,并根据提示输入参数:

```bash
$ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring/sealos/main/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh \
$ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring/sealos/v5.0.0-beta4/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh \
--cloud-version=v5.0.0-beta4 \
--image-registry=registry.cn-shanghai.aliyuncs.com --zh \
--proxy-prefix=https://mirror.ghproxy.com \
--cloud-domain=<your_domain> \
Expand All @@ -158,14 +165,15 @@ $ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring
例如 (假设你的域名是 `cloud.example.io`,假设你的 Master 节点内网地址是 `192.168.1.10`):

```bash
cloud.example.io A 192.168.1.1
*.cloud.example.io A 192.168.1.1
cloud.example.io A 192.168.1.10
*.cloud.example.io A 192.168.1.10
```

然后在第一个 Master 节点上执行以下命令,并根据提示输入参数:

```bash
$ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring/sealos/main/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh \
$ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring/sealos/v5.0.0-beta4/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh \
--cloud-version=v5.0.0-beta4 \
--image-registry=registry.cn-shanghai.aliyuncs.com --zh \
--proxy-prefix=https://mirror.ghproxy.com \
--cloud-domain=<your_domain>
Expand Down Expand Up @@ -223,7 +231,8 @@ $ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring
然后在第一个 Master 节点上执行以下命令,并根据提示输入参数:

```bash
$ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring/sealos/main/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh \
$ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring/sealos/v5.0.0-beta4/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh \
--cloud-version=v5.0.0-beta4 \
--image-registry=registry.cn-shanghai.aliyuncs.com --zh \
--proxy-prefix=https://mirror.ghproxy.com \
--cloud-domain=<your_domain>
Expand Down Expand Up @@ -382,4 +391,38 @@ Linux 不同发行版更新根证书存储的命令不一样,用来保存私
```

</TabItem>
</Tabs>
</Tabs>

## 激活集群

集群安装完成后,默认只有 5 元的额度,你需要激活集群以获取赠送的 299 元余额。步骤如下:

1. 首先点击桌面的「许可证」打开许可证应用:

![](images/sealos-license.png)

2. 然后点击「激活/购买」:

![](images/sealos-license-activate.jpg)

然后浏览器会跳转到 License 页面,并跳出一个弹窗:

![](images/sealos-license-activate1.png)

3. 如果你还没有在该页面创建过集群,就点击「理立即开始」创建一个集群;如果你已经创建过集群了,只需要点击「已有集群」便会跳转到已有集群。

跳转到集群列表之后。你就会看到集群已经被激活了:

![](images/sealos-license-activate2.png)

4. 点击 「License 管理」,然后下载免费赠送的价值 299 元的 License:

![](images/sealos-license-activate3.png)

5. 然后回到 Sealos 集群的「许可证」应用界面,点击「上传 License 文件」:

![](images/sealos-license-activate4.png)

选择刚刚下载的 License 文件进行上传,然后点击右下角的「激活 License」,便可激活 License。激活成功后,集群中的余额就变成了 304 元。

![](images/sealos-cost-center.jpg)
4 changes: 2 additions & 2 deletions docs/blog/zh-Hans/2023/k8s-multi-tenancy.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ K8s 本身不具备原生的用户管理系统。因此,需要通过扩展功

Sealos 的设计允许管理员将用户加入特定的命名空间,并对其角色进行管理,从而有效地控制权限。这样管理员就可以细粒度地管理用户权限,确保每个用户只能访问和修改他们被授权的资源。

![](https://cdn.jsdelivr.us/gh/yangchuansheng/imghosting6@main/uPic/2023-11-29-10-34-wknQxI.png)
![](https://cdn.jsdelivr.net/gh/yangchuansheng/imghosting6@main/uPic/2023-11-29-10-34-wknQxI.png)

![](https://cdn.jsdelivr.us/gh/yangchuansheng/imghosting6@main/uPic/2023-11-29-10-34-RQFrTB.png)
![](https://cdn.jsdelivr.net/gh/yangchuansheng/imghosting6@main/uPic/2023-11-29-10-34-RQFrTB.png)

### 挑战 3:计量与配额管理

Expand Down
4 changes: 2 additions & 2 deletions docs/blog/zh-Hans/2023/what-is-sealos.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: 深入探讨 Sealos 的核心功能、技术特点、设计理念
authors: [fanux]
tags: [Kubernetes, Sealos]
keywords: [云操作系统, Sealos, K8s, 云原生, 云计算, 分布式, PaaS, Rancher, KubeSphere, 云服务]
image: https://cdn.jsdelivr.us/gh/yangchuansheng/imghosting-test@main/uPic/2023-11-17-15-50-TKK1Ol.webp
image: https://cdn.jsdelivr.net/gh/yangchuansheng/imghosting-test@main/uPic/2023-11-17-15-50-TKK1Ol.webp
date: 2023-07-10T10:00
---

Expand Down Expand Up @@ -87,7 +87,7 @@ Sealos 并不自己去设定标准,而是严格遵循成熟的体系和事实

从这个新的视角出发,我们发现,实际上并不需要 IaaS。同时,从技术角度来看,PaaS 和 SaaS 本质上是相同的,它们都是应用层面的服务,因此也无需进行过度区分。在新的云内核架构中,我们只需要有效地实现多租户之间的隔离。这并不需要复杂重量级的解决方案。例如,Sealos 提供了一种在不可信公网环境中实现多租户共享一个 K8s 集群的方式。我们利用强隔离容器 (如 Firecracker)、网络策略 (如 Cilium) 以及存储块设备隔离 (如 OpenEBS) 来实现这一目标,不仅成本更低,效果也更好。

![](https://cdn.jsdelivr.us/gh/yangchuansheng/imghosting-test@main/uPic/2023-11-17-15-02-6N4ygp.png)
![](https://cdn.jsdelivr.net/gh/yangchuansheng/imghosting-test@main/uPic/2023-11-17-15-02-6N4ygp.png)

#### 提高应用密度和调度效率

Expand Down
2 changes: 1 addition & 1 deletion lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ exclude_all_private = true
insecure = true
no_progress = true
output = ".dummy.report.md"
exclude = [ '.*codecov.*','.*sealos\.hub:5000.*','.*local.*','file:///.*','.*sealos.io/payment/wechat/callback.*','.*www.sealos.io/docs/cloud/apps/appstore.*','.*chat.openai.com/c.*','.*twitter.com/sealosio.*','.*sealos.run.*','.*sealos.io.*','.*jsd.cdn.zzko.cn.*' ]
exclude = [ '.*codecov.*','.*sealos\.hub:5000.*','.*local.*','file:///.*','.*sealos.io/payment/wechat/callback.*','.*www.sealos.io/docs/cloud/apps/appstore.*','.*chat.openai.com/c.*','.*twitter.com/sealosio.*','.*sealos.run.*','.*sealos.io.*','.*jsd.cdn.zzko.cn.*','*feishu.cn*' ]

0 comments on commit 15fee3b

Please sign in to comment.