Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from labring:main #657

Merged
merged 3 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 1
sidebar_position: 2
---

# Add a domain
Expand All @@ -8,7 +8,7 @@ Assigning a custom domain to your project guarantees that visitors to your appli

## When Deploying

Just enable "Public Access" when you're deploying, and Sealos will sorts you out with a domain.
Just enable "Public Access" when you're deploying, and [Sealos](https://cloud.sealos.io) will sorts you out with a domain.

![](./images/app-launchpad-domain.png)

Expand Down
6 changes: 3 additions & 3 deletions docs/4.0/docs/quick-start/app-deployments/next-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 5

Congratulations on getting started with Sealos! Now, you can continue learning more about Sealos's many features:

+ [Set up your own domain](/quick-start/setup-domain.md)
+ Update app settings
+ Expose multiple ports
+ [Update app](/quick-start/update-app.md)
+ [Add a domain](/quick-start/add-domain.md)
+ [Expose multiple ports](/quick-start/expose-multi-ports.md)
+ Add CronJob
20 changes: 20 additions & 0 deletions docs/4.0/docs/quick-start/expose-multi-ports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
sidebar_position: 3
---

# Exposing Multiple Ports

In complex application environments, it's common for services to expose multiple ports simultaneously to cater to diverse needs. These requirements can emerge from various scenarios:

+ **Multi-protocol support**: For example, an application might support both HTTP and HTTPS, necessitating the exposure of both ports 80 and 443.
+ **Multi-functional application**: An application might have a web service and an admin service, both of which listen on different ports.
+ **Compatibility considerations**: To remain compatible with older versions or other services, you might need to expose ports for both the new and old interfaces.
+ **Combined Database + App**: For instance, if you have an application and a database within the same Pod, you might need to expose ports for both the application and the database.
+ **Prometheus Monitoring and App Service**: If your application has a business port and another port for Prometheus monitoring via `/metrics`, you might need to expose both.
+ **Coexistence of GRPC and RESTful services**: If your application offers both GRPC and RESTful services, you might need to expose separate ports for each type of service.

When deploying applications using "[App Launchpad](/platform-components/applaunchpad.md)" on [Sealos](https://cloud.sealos.io), you can easily choose to expose multiple ports. During the deployment process, users simply click on the "Network" option and then select "Add Port" to configure multiple ports.

![](./images/multi-ports1.png)

Furthermore, the Sealos platform offers external access to these ports. Once exposed to the public network, each port will be assigned a unique sub-domain, facilitating easier remote access and management.
Binary file added docs/4.0/docs/quick-start/images/multi-ports1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/4.0/docs/quick-start/update-app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 1
---

# Update app

After deploying an application on [Sealos](https://cloud.sealos.io), you can update the application settings at any time. Just click the "Update" button at the top-right of the app details page. When you're done, click on the "Update" button at the top-right.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
sidebar_position: 1
sidebar_position: 2
---

# 自定义域名

想让您的用户能够享受与您的品牌一致的专属体验?只需要在 Sealos 中为你的项目指定一个自定义域名。
想让您的用户能够享受与您的品牌一致的专属体验?只需要在 [Sealos](https://cloud.sealos.io) 中为你的项目指定一个自定义域名。

## 部署时接入

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 5

恭喜您成功进入了 Sealos 的世界,现在您可以选择深入了解 Sealos 的更多功能:

+ [自定义域名](/quick-start/setup-domain.md)
+ 修改应用配置
+ 多端口暴露
+ [修改应用配置](/quick-start/update-app.md)
+ [自定义域名](/quick-start/add-domain.md)
+ [暴露多端口](/quick-start/expose-multi-ports.md)
+ 添加定时任务
19 changes: 19 additions & 0 deletions docs/4.0/i18n/zh-Hans/quick-start/expose-multi-ports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
sidebar_position: 3
---

# 暴露多端口

在复杂的应用环境中,经常需要应用服务同时暴露多个端口以满足不同的需求。这种需求可能出现在多种场景下:

+ **多协议支持**:例如,一个应用可能同时支持 HTTP 和 HTTPS 协议,需要暴露 80 和 443 端口。
+ **应用的多功能**:例如,一个应用可能有一个 Web 服务和一个 Admin 服务,它们分别监听不同的端口。
+ **兼容性考虑**:为了与旧版本或其他服务兼容,可能需要同时暴露新旧两种接口的端口。
+ **Prometheus 监控和应用服务**:如果你的应用既有业务端口,又有一个用于 Prometheus 监控的 `/metrics` 端口,你可能需要同时暴露两者。
+ **GRPC 和 RESTful 服务并存**:如果你的应用同时提供 GRPC 和 RESTful 服务,你可能需要为每种服务类型暴露不同的端口。

[Sealos](https://cloud.sealos.io) 在使用「[应用管理](/platform-components/applaunchpad.md)」部署应用时,可以轻松地选择暴露多个端口。在部署应用的过程中,用户只需要点击「网络配置」选项,然后选择「添加端口」,即可实现多端口的配置。

![](./images/multi-ports1.png)

此外,Sealos 平台还提供了端口的外网访问功能。一旦暴露到公网,每一个暴露的端口都会被分配一个独立的二级域名,使得用户可以更方便地进行远程访问和管理。
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/4.0/i18n/zh-Hans/quick-start/update-app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 1
---

# 修改应用配置

[Sealos](https://cloud.sealos.io) 部署完应用后,可以随时修改应用配置。

只需要在应用详情页面点击右上角的「变更」按钮,然后就可以修改配置了。修改完成之后点击右上角的「变更」即可。
4 changes: 3 additions & 1 deletion docs/4.0/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
}
]
},
"quick-start/setup-domain"
"quick-start/update-app",
"quick-start/add-domain",
"quick-start/expose-multi-ports"
]
},
{
Expand Down
Loading