diff --git a/website/docs/deployment/kubernetes/sealos.md b/website/docs/deployment/kubernetes/sealos.md index ba77cbfc..74f030b9 100644 --- a/website/docs/deployment/kubernetes/sealos.md +++ b/website/docs/deployment/kubernetes/sealos.md @@ -110,3 +110,37 @@ Of course, as a distributed architecture system, Tailchat naturally supports hor At this point, when we access `https://.cloud.sealos.io/health`, we can see that we can access different nodes. ![](/img/kubernetes/sealos/16.png) + +## Add Tailchat entry to desktop + +Open Terminal, enter `vim app.yml` to create and edit a configuration file + +Enter the following content, note that the url should be replaced with the url deployed by yourself + +```yml +apiVersion: app.sealos.io/v1 +kind: App +metadata: + name: tailchat-app-entry +spec: + name: Tailchat + icon: + type: iframe + data: + url: + desc: + icon: https://tailchat.msgbyte.com/img/logo.svg + menuData: + nameColor: text-black + helpDropDown: + helpDocs: + displayType: normal +``` + +Press `esc` to exit edit mode, press `:wq` to save and exit vim + +Type `kubectl apply -f app.yml` to start the configuration. + +After refreshing the page, we can see that our entry appears on the desktop of `sealos` + +![](/img/kubernetes/sealos/17.png) diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/kubernetes/sealos.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/kubernetes/sealos.md index c3ab9493..f8da5c3d 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/kubernetes/sealos.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/kubernetes/sealos.md @@ -139,3 +139,37 @@ title: 在 Sealos 上部署Tailchat 此时当我们访问 `https://.cloud.sealos.io/health` 可以看到我们可以访问到不同的节点 ![](/img/kubernetes/sealos/16.png) + +## 添加 Tailchat 入口到桌面 + +打开 Terminal, 输入`vim app.yml`创建并编辑一个配置文件 + +输入以下内容,注意url要换成自己部署的网址 + +```yml +apiVersion: app.sealos.io/v1 +kind: App +metadata: + name: tailchat-app-entry +spec: + name: Tailchat + icon: + type: iframe + data: + url: + desc: + icon: https://tailchat.msgbyte.com/img/logo.svg + menuData: + nameColor: text-black + helpDropDown: + helpDocs: + displayType: normal +``` + +按`esc`退出编辑模式, 按`:wq`保存并退出vim + +输入`kubectl apply -f app.yml`启动配置。 + +完毕后刷新页面,此时我们可以看到我们的入口就出现在`sealos`的桌面上了 + +![](/img/kubernetes/sealos/17.png) diff --git a/website/static/img/kubernetes/sealos/17.png b/website/static/img/kubernetes/sealos/17.png new file mode 100644 index 00000000..8e43e7ce Binary files /dev/null and b/website/static/img/kubernetes/sealos/17.png differ