Merge pull request #818 from Patrick-LuoYu/postgresql-app-zh
Patrick-LuoYu Translated postgresql-app.md.
|
|
@ -49,7 +49,7 @@ This tutorial walks you through an example of how to deploy PostgreSQL from the
|
|||
|
||||
### Step 2: Access PostgreSQL Database
|
||||
|
||||
To access MySQL outside the cluster, you need to expose the app through NodePort first.
|
||||
To access PostgreSQL outside the cluster, you need to expose the app through NodePort first.
|
||||
|
||||
1. Go to **Services** and click the service name of PostgreSQL.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,82 +1,82 @@
|
|||
---
|
||||
title: "Deploy PostgreSQL on KubeSphere"
|
||||
keywords: 'Kubernetes, KubeSphere, PostgreSQL, app-store'
|
||||
description: 'How to deploy PostgreSQL from the App Store of KubeSphere'
|
||||
linkTitle: "Deploy PostgreSQL on KubeSphere"
|
||||
weight: 14280
|
||||
title: "在 KubeSphere 中部署 PostgreSQL"
|
||||
keywords: 'Kubernetes, KubeSphere, PostgreSQL, 应用商店'
|
||||
description: '如何从 KubeSphere 的应用商店部署 PostgreSQL'
|
||||
linkTitle: "在 KubeSphere 中部署 PostgreSQL"
|
||||
weight: 14280
|
||||
---
|
||||
|
||||
[PostgreSQL](https://www.postgresql.org/) is a powerful, open-source object-relational database system which is famous for reliability, feature robustness, and performance.
|
||||
作为强大的开源对象关系型数据库系统,[PostgreSQL](https://www.postgresql.org/) 以其卓越的可靠性、功能鲁棒性和高性能而著称。
|
||||
|
||||
This tutorial walks you through an example of how to deploy PostgreSQL from the App Store of KubeSphere.
|
||||
本教程演示如何从 KubeSphere 的应用商店部署 PostgreSQL。
|
||||
|
||||
## Prerequisites
|
||||
## 准备工作
|
||||
|
||||
- Please make sure you [enable the OpenPitrix system](../../../pluggable-components/app-store/).
|
||||
- You need to create a workspace, a project, and a user account (`project-regular`) for this tutorial. The account needs to be a platform regular user and to be invited as the project operator with the `operator` role. In this tutorial, you log in as `project-regular` and work in the project `demo-project` in the workspace `demo-workspace`. For more information, see [Create Workspace, Project, Account and Role](../../../quick-start/create-workspace-and-project/).
|
||||
- 您需要[启用 OpenPitrix 系统](../../../pluggable-components/app-store/)。
|
||||
- 您需要创建一个企业空间、一个项目和一个用户帐户 (`project-regular`)。该帐户必须是已邀请至项目的平台普通用户,并且在项目中的角色为 `operator`。在本教程中,您需要以 `project-regular` 用户登录,并在 `demo-workspace` 企业空间的 `demo-project` 项目中进行操作。有关更多信息,请参见[创建企业空间、项目、帐户和角色](../../../quick-start/create-workspace-and-project/)。
|
||||
|
||||
## Hands-on Lab
|
||||
## 动手实验
|
||||
|
||||
### Step 1: Deploy PostgreSQL from App Store
|
||||
### 步骤 1:从应用商店部署 PostgreSQL
|
||||
|
||||
1. On the **Overview** page of the project `demo-project`, click **App Store** in the top left corner.
|
||||
1. 在 `demo-project` 的**概览**页面,点击左上角的**应用商店**。
|
||||
|
||||

|
||||

|
||||
|
||||
2. Find PostgreSQL and click **Deploy** on the **App Info** page.
|
||||
2. 找到 PostgreSQL,在**应用信息**页面点击**部署**。
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
3. Set a name and select an app version. Make sure PostgreSQL is deployed in `demo-project` and click **Next**.
|
||||
3. 设置应用名称和版本,确保 PostgreSQL 部署在 `demo-project` 项目中,然后点击**下一步**。
|
||||
|
||||

|
||||

|
||||
|
||||
4. In **App Config**, specify persistent volumes for the app and record the username and the password which will be used later to access the app. When you finish, click **Deploy**.
|
||||
4. 在**应用配置**页面,为应用设置持久卷,记录用户名和密码用于后续访问应用,然后点击**部署**。
|
||||
|
||||

|
||||

|
||||
|
||||
{{< notice note >}}
|
||||
|
||||
To specify more values for PostgreSQL, use the toggle switch to see the app’s manifest in YAML format and edit its configurations.
|
||||
如需为 PostgreSQL 设置更多的参数,可点击 **YAML** 后的切换开关打开应用的 YAML 清单文件,并在清单文件中设置相关参数。
|
||||
|
||||
{{</ notice >}}
|
||||
|
||||
5. Wait until PostgreSQL is up and running.
|
||||
5. 等待 PostgreSQL 创建完成并开始运行。
|
||||
|
||||

|
||||

|
||||
|
||||
### Step 2: Access PostgreSQL Database
|
||||
### 步骤2:访问 PostgreSQL 数据库
|
||||
|
||||
To access MySQL outside the cluster, you need to expose the app through NodePort first.
|
||||
要从集群外访问 PostgreSQL,您需要先用 NodePort 暴露该应用。
|
||||
|
||||
1. Go to **Services** and click the service name of PostgreSQL.
|
||||
1. 打开**服务**页面并点击 PostgreSQL 的服务名称。
|
||||
|
||||

|
||||

|
||||
|
||||
2. Click **More** and select **Edit Internet Access** from the drop-down menu.
|
||||
2. 点击**更多操作**,在下拉菜单中选择**编辑外网访问**。
|
||||
|
||||

|
||||

|
||||
|
||||
3. Select **NodePort** for **Access Method** and click **OK**. For more information, see [Project Gateway](../../../project-administration/project-gateway/).
|
||||
3. 将**访问方式**设置为 **NodePort** 并点击**确定**。有关更多信息,请参见[项目网关](../../../project-administration/project-gateway/)。
|
||||
|
||||

|
||||

|
||||
|
||||
4. Under **Service Ports**, you can see the port is exposed, which will be used in the next step to access the PostgreSQL database.
|
||||
4. 您可以在**服务端口**区域查看暴露的端口。该端口将在下一步中用于访问 PostgreSQL 数据库。
|
||||
|
||||

|
||||

|
||||
|
||||
5. Expand the Pod menu under **Pods** and click the Terminal icon. In the pop-up window, enter commands directly to access the database.
|
||||
5. 在**容器组**区域,展开容器详情,点击终端图标。在弹出的窗口中直接输入命令访问数据库。
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
{{< notice note >}}
|
||||
|
||||
You can also use a third-party application such as SQLPro Studio to connect to the database. You may need to open the port in your security groups and configure related port forwarding rules depending on your where your Kubernetes cluster is deployed.
|
||||
您也可以使用第三方应用例如 SQLPro Studio 连接数据库。取决于您的 Kubernetes 集群的部署位置,您可能需要在安全组中放行端口并配置相关的端口转发规则。
|
||||
|
||||
{{</ notice >}}
|
||||
|
||||
6. For more information, see [the official documentation of PostgreSQL](https://www.postgresql.org/docs/).
|
||||
6. 有关更多信息,请参考[ PostgreSQL 官方文档](https://www.postgresql.org/docs/)。
|
||||
|
After Width: | Height: | Size: 261 KiB |
|
After Width: | Height: | Size: 310 KiB |
|
After Width: | Height: | Size: 276 KiB |
|
After Width: | Height: | Size: 192 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 246 KiB |
|
After Width: | Height: | Size: 203 KiB |
|
After Width: | Height: | Size: 252 KiB |
|
After Width: | Height: | Size: 310 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 191 KiB |