From 88ef18f0124f52add5d86c5393835b087a097239 Mon Sep 17 00:00:00 2001 From: Carson Yang Date: Mon, 6 Nov 2023 17:49:35 +0800 Subject: [PATCH] Docs: update installation (#4261) Signed-off-by: Carson Yang --- .../i18n/zh-Hans/self-hosting/installation.md | 61 ++++++++++++++++++- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/docs/4.0/i18n/zh-Hans/self-hosting/installation.md b/docs/4.0/i18n/zh-Hans/self-hosting/installation.md index 938f6831d72..ed1f39202ce 100644 --- a/docs/4.0/i18n/zh-Hans/self-hosting/installation.md +++ b/docs/4.0/i18n/zh-Hans/self-hosting/installation.md @@ -3,6 +3,9 @@ sidebar_position: 1 toc_max_heading_level: 5 --- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + # 安装 Sealos 集群 export const Highlight = ({children, color}) => ( @@ -19,7 +22,7 @@ export const Highlight = ({children, color}) => ( :::tip -大规模集群以及企业生产环境强烈建议使用 [Sealos 私有云的企业版或者定制版](/pricing)。 +大规模集群以及企业生产环境强烈建议使用 [Sealos 私有云的企业版或者定制版](/self-hosting)。 ::: @@ -314,4 +317,58 @@ $ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.ke 3. “将所有的证书都放入下列存储”,“浏览”,“受信任的根证书颁发机构”,“确定”,下一步。 4. 完成,“是”,确定。 -![](./images/windows-trust-certificate.jpg) \ No newline at end of file +![](./images/windows-trust-certificate.jpg) + +#### Linux + +Linux 不同发行版更新根证书存储的命令不一样,用来保存私有证书的路径也不一样。需要先复制自签名 CA 证书到特定路径,再运行命令更新根证书存储。 + + + + + ```bash + # Debian/Ubuntu/Gentoo + # - 安装 + $ sudo cp root_ca.crt /usr/local/share/ca-certificates/root_ca.crt + # update-ca-certificates 会添加 /etc/ca-certificates.conf 配置文件中指定的证书 + # 另外所有 /usr/local/share/ca-certificates/*.crt 会被列为隐式信任 + $ sudo update-ca-certificates + + # - 删除 + $ sudo rm /usr/local/share/ca-certificates/root_ca.crt + $ sudo update-ca-certificates --fresh + ``` + + + + + ```bash + # CentOS/Fedora/RHEL + $ yum install ca-certificates + # 启用动态 CA 配置功能: + $ update-ca-trust force-enable + $ cp root_ca.crt /etc/pki/ca-trust/source/anchors/ + $ update-ca-trust + ``` + + + + + ```bash + # Alpine + $ apk update && apk add --no-cache ca-certificates + $ cp root_ca.crt /usr/local/share/ca-certificates/ + $ update-ca-certificates + ``` + + + + + ```bash + # OpenSUSE/SLES + $ cp root_ca.crt /etc/pki/trust/anchors/ + $ update-ca-certificates + ``` + + + \ No newline at end of file