Update Doc: Services
Signed-off-by: Felixnoo <felixliu@yunify.com>
|
|
@ -32,7 +32,7 @@ You need to create a workspace, a project and an account (`project-regular`). Th
|
|||
|
||||
As shown in the image below, KubeSphere provides three basic methods to create a Service: **Stateless Service**, **Stateful Service**, and **External Service**. Besides, you can also customize a Service through **Specify Workloads** and **Edit by YAML** under **Custom Creation**.
|
||||
|
||||

|
||||

|
||||
|
||||
- **Stateless Service**
|
||||
|
||||
|
|
@ -66,11 +66,11 @@ The value of `annotations:kubesphere.io/serviceType` keywords can be defined as:
|
|||
|
||||
1. Go to **Services** under **Application Workloads** of a project and click **Create**.
|
||||
|
||||

|
||||

|
||||
|
||||
2. Click **Stateless Service**.
|
||||
|
||||

|
||||

|
||||
|
||||
{{< notice note >}}
|
||||
|
||||
|
|
@ -80,9 +80,9 @@ The steps of creating a stateful Service and a stateless Service are basically t
|
|||
|
||||
### Step 2: Enter basic information
|
||||
|
||||
1. In the dialog that appears, you can see the field **Version** prepopulated with `v1`. You need to define a name for the Service, such as `demo-service`. When you finish, click **Next** to continue.
|
||||
1. In the displayed dialog box, you can see the field **Version** prepopulated with `v1`. You need to define a name for the Service, such as `demo-stateless`. When you finish, click **Next** to continue.
|
||||
|
||||

|
||||

|
||||
|
||||
- **Name**: The name of the Service and Deployment, which is also the unique identifier.
|
||||
- **Alias**: The alias name of the Service, making resources easier to identify.
|
||||
|
|
@ -129,7 +129,7 @@ The value of **Name** is used in both configurations, one for Deployment and the
|
|||
|
||||
To add a container image for the Service, see [Set an image](../deployments/#step-3-set-an-image) for details.
|
||||
|
||||

|
||||

|
||||
|
||||
{{< notice tip >}}
|
||||
|
||||
|
|
@ -141,13 +141,13 @@ For more information about explanations of dashboard properties, see [Container
|
|||
|
||||
To mount a volume for the Service, see [Mount Volumes](../deployments/#step-4-mount-volumes) for details.
|
||||
|
||||

|
||||

|
||||
|
||||
### Step 5: Configure advanced settings
|
||||
|
||||
You can set a policy for node scheduling and add metadata which is the same as explained in [Deployments](../deployments/#step-5-configure-advanced-settings). For a Service, you can see two additional options available, **Internet Access** and **Enable Sticky Session**.
|
||||
|
||||

|
||||

|
||||
|
||||
- Internet Access
|
||||
|
||||
|
|
@ -173,9 +173,9 @@ This value is specified by `.spec.type`. If you select **LoadBalancer**, you nee
|
|||
|
||||
### Detail page
|
||||
|
||||
1. After a Service is created, you can click the three dots on the right to further edit it, such as its metadata (excluding **Name**), YAML, port, and Internet access.
|
||||
1. After a Service is created, you can click <img src="/images/docs/project-user-guide/application-workloads/services/three-dots.png" width="20px" /> on the right to further edit it, such as its metadata (excluding **Name**), YAML, port, and Internet access.
|
||||
|
||||

|
||||

|
||||
|
||||
- **Edit**: View and edit the basic information.
|
||||
- **Edit YAML**: View, upload, download, or update the YAML file.
|
||||
|
|
@ -185,7 +185,7 @@ This value is specified by `.spec.type`. If you select **LoadBalancer**, you nee
|
|||
|
||||
2. Click the name of the Service and you can go to its detail page.
|
||||
|
||||

|
||||

|
||||
|
||||
- Click **More** to expand the drop-down menu which is the same as the one in the Service list.
|
||||
- The Pod list provides detailed information of the Pod (status, node, Pod IP and resource usage).
|
||||
|
|
@ -195,22 +195,22 @@ This value is specified by `.spec.type`. If you select **LoadBalancer**, you nee
|
|||
|
||||
### Resource status
|
||||
|
||||
1. Click the **Resource Status** tab to view information about the Service ports and Pods.
|
||||
1. Click the **Resource Status** tab to view information about the Service ports, Workloads, and Pods.
|
||||
|
||||

|
||||

|
||||
|
||||
2. In the **Pods** area, click <img src="/images/docs/project-user-guide/workloads/services_refresh_pods.png" width="20px" /> to refresh the Pod information, and click <img src="/images/docs/project-user-guide/workloads/services_display_containers.png" width="20px" />/<img src="/images/docs/project-user-guide/workloads/services_hide_containers.png" width="20px" /> to display/hide the containers in each Pod.
|
||||
2. In the **Pods** area, click <img src="/images/docs/project-user-guide/application-workloads/services/refresh.png" width="20px" /> to refresh the Pod information, and click <img src="/images/docs/project-user-guide/application-workloads/services/display.png" width="20px" />/<img src="/images/docs/project-user-guide/application-workloads/services/hide.png" width="20px" /> to display/hide the containers in each Pod.
|
||||
|
||||

|
||||

|
||||
|
||||
### Metadata
|
||||
|
||||
Click the **Metadata** tab to view the labels and annotations of the Service.
|
||||
|
||||

|
||||

|
||||
|
||||
### Events
|
||||
|
||||
Click the **Events** tab to view the events of the Service.
|
||||
|
||||

|
||||

|
||||
|
|
@ -173,7 +173,7 @@ weight: 10240
|
|||
|
||||
### 详情页面
|
||||
|
||||
1. 创建服务后,您可以点击右侧的三个点进一步编辑它,例如元数据(**名称**无法编辑)、配置文件、端口以及外网访问。
|
||||
1. 创建服务后,您可以点击右侧的 <img src="/images/docs/zh-cn/project-user-guide/application-workloads/services/three-dots.png" width="20px" /> 进一步编辑它,例如元数据(**名称**无法编辑)、配置文件、端口以及外网访问。
|
||||
|
||||

|
||||
|
||||
|
|
@ -195,7 +195,7 @@ weight: 10240
|
|||
|
||||
### 资源状态
|
||||
|
||||
1. 点击**资源状态**选项卡以查看服务端口和 Pod 信息。
|
||||
1. 点击**资源状态**选项卡以查看服务端口、工作负载和 Pod 信息。
|
||||
|
||||

|
||||
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 431 KiB |
|
After Width: | Height: | Size: 624 KiB |
|
After Width: | Height: | Size: 375 KiB |
|
After Width: | Height: | Size: 276 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 405 KiB |
|
After Width: | Height: | Size: 437 KiB |
|
After Width: | Height: | Size: 351 KiB |
|
After Width: | Height: | Size: 410 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.3 KiB |