Skip to content

Commit e3a9814

Browse files
authored
Merge pull request #31439 from tengqm/zh-webui
[zh] Resync web UI dashboard page
2 parents e301a74 + e80a87a commit e3a9814

File tree

1 file changed

+46
-24
lines changed

1 file changed

+46
-24
lines changed

content/zh/docs/tasks/access-application-cluster/web-ui-dashboard.md

Lines changed: 46 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Web 界面 (Dashboard)
2+
title: 部署和访问 Kubernetes 仪表板(Dashboard
33
content_type: concept
44
weight: 10
55
card:
@@ -11,8 +11,7 @@ card:
1111
reviewers:
1212
- bryk
1313
- mikedanese
14-
- rf232
15-
title: Web UI (Dashboard)
14+
title: Deploy and Access the Kubernetes Dashboard
1615
content_type: concept
1716
weight: 10
1817
card:
@@ -56,7 +55,7 @@ The Dashboard UI is not deployed by default. To deploy it, run the following com
5655
默认情况下不会部署 Dashboard。可以通过以下命令部署:
5756

5857
```
59-
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml
58+
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml
6059
```
6160

6261
<!--
@@ -67,7 +66,7 @@ Currently, Dashboard only supports logging in with a Bearer Token.
6766
To create a token for this demo, you can follow our guide on
6867
[creating a sample user](https://github.com/kubernetes/dashboard/wiki/Creating-sample-user).
6968
-->
70-
## 访问 Dashboard UI
69+
## 访问 Dashboard 用户界面
7170

7271
为了保护你的集群数据,默认情况下,Dashboard 会使用最少的 RBAC 配置进行部署。
7372
当前,Dashboard 仅支持使用 Bearer 令牌登录。
@@ -85,11 +84,12 @@ The sample user created in the tutorial will have administrative privileges and
8584
<!--
8685
### Command line proxy
8786
88-
You can access Dashboard using the kubectl command-line tool by running the following command:
87+
You can enable access to the Dashboard using the `kubectl` command-line tool,
88+
by running the following command:
8989
-->
9090
### 命令行代理
9191

92-
你可以使用 kubectl 命令行工具访问 Dashboard,命令如下:
92+
你可以使用 `kubectl` 命令行工具来启用 Dashboard 访问,命令如下:
9393

9494
```
9595
kubectl proxy
@@ -106,10 +106,11 @@ The UI can _only_ be accessed from the machine where the command is executed. Se
106106
UI _只能_ 通过执行这条命令的机器进行访问。更多选项参见 `kubectl proxy --help`
107107

108108
<!--
109-
Kubeconfig Authentication method does NOT support external identity providers or x509 certificate-based authentication.
109+
The kubeconfig authentication method does **not** support external identity providers
110+
or X.509 certificate-based authentication.
110111
-->
111112
{{< note >}}
112-
Kubeconfig 身份验证方法不支持外部身份提供程序或基于 x509 证书的身份验证。
113+
Kubeconfig 身份验证方法****支持外部身份提供程序或基于 x509 证书的身份验证。
113114
{{< /note >}}
114115

115116
<!--
@@ -133,11 +134,14 @@ When you access Dashboard on an empty cluster, you'll see the welcome page. This
133134
<!--
134135
## Deploying containerized applications
135136
136-
Dashboard lets you create and deploy a containerized application as a Deployment and optional Service with a simple wizard. You can either manually specify application details, or upload a YAML or JSON file containing application configuration.
137+
Dashboard lets you create and deploy a containerized application as a Deployment and optional Service with a simple wizard.
138+
You can either manually specify application details, or upload a YAML or JSON _manifest_ file containing application configuration.
137139
-->
138140
## 部署容器化应用
139141

140-
通过一个简单的部署向导,你可以使用 Dashboard 将容器化应用作为一个 Deployment 和可选的 Service 进行创建和部署。可以手工指定应用的详细配置,或者上传一个包含应用配置的 YAML 或 JSON 文件。
142+
通过一个简单的部署向导,你可以使用 Dashboard 将容器化应用作为一个 Deployment 和可选的
143+
Service 进行创建和部署。你可以手工指定应用的详细配置,或者上传一个包含应用配置的 YAML
144+
或 JSON _清单_文件。
141145

142146
<!--
143147
Click the **CREATE** button in the upper right corner of any page to begin.
@@ -336,17 +340,22 @@ If needed, you can expand the **Advanced options** section where you can specify
336340
<!--
337341
### Uploading a YAML or JSON file
338342
339-
Kubernetes supports declarative configuration. In this style, all configuration is stored in YAML or JSON configuration files using the Kubernetes [API](/docs/concepts/overview/kubernetes-api/) resource schemas.
343+
Kubernetes supports declarative configuration.
344+
In this style, all configuration is stored in manifests (YAML or JSON configuration files).
345+
The manifests use the Kubernetes [API](/docs/concepts/overview/kubernetes-api/) resource schemas.
340346
-->
341347
### 上传 YAML 或者 JSON 文件
342348

343-
Kubernetes 支持声明式配置。所有的配置都存储在遵循 Kubernetes
344-
[API](/zh/docs/concepts/overview/kubernetes-api/) 规范的 YAML 或者 JSON 配置文件中。
349+
Kubernetes 支持声明式配置。所有的配置都存储在清单文件
350+
(YAML 或者 JSON 配置文件)中。这些
351+
清单使用 Kubernetes [API](/zh/docs/concepts/overview/kubernetes-api/) 定义的资源模式。
345352

346353
<!--
347-
As an alternative to specifying application details in the deploy wizard, you can define your application in YAML or JSON files, and upload the files using Dashboard:
354+
As an alternative to specifying application details in the deploy wizard,
355+
you can define your application one or more manifests, and upload the files using Dashboard.
348356
-->
349-
作为一种替代在部署向导中指定应用详情的方式,你可以在 YAML 或者 JSON 文件中定义应用,并且使用 Dashboard 上传文件:
357+
作为一种替代在部署向导中指定应用详情的方式,你可以在一个或多个清单文件中定义应用,并且使用
358+
Dashboard 上传文件。
350359

351360
<!--
352361
## Using Dashboard
@@ -375,7 +384,10 @@ Dashboard 展示大部分 Kubernetes 对象,并将它们分组放在几个菜
375384
<!--
376385
#### Admin Overview
377386
378-
For cluster and namespace administrators, Dashboard lists Nodes, Namespaces and Persistent Volumes and has detail views for them. Node list view contains CPU and memory usage metrics aggregated across all Nodes. The details view shows the metrics for a Node, its specification, status, allocated resources, events and pods running on the node.
387+
For cluster and namespace administrators, Dashboard lists Nodes, Namespaces and PersistentVolumes and has detail views for them.
388+
Node list view contains CPU and memory usage metrics aggregated across all Nodes.
389+
The details view shows the metrics for a Node, its specification, status,
390+
allocated resources, events and pods running on the node.
379391
-->
380392
#### 管理概述
381393

@@ -385,22 +397,31 @@ For cluster and namespace administrators, Dashboard lists Nodes, Namespaces and
385397

386398
<!--
387399
#### Workloads
388-
Shows all applications running in the selected namespace. The view lists applications by workload kind (e.g., Deployments, Replica Sets, Stateful Sets, etc.) and each workload kind can be viewed separately. The lists summarize actionable information about the workloads, such as the number of ready pods for a Replica Set or current memory usage for a Pod.
400+
401+
Shows all applications running in the selected namespace.
402+
The view lists applications by workload kind (e.g., Deployments, ReplicaSets, Stateful Sets, etc.).
403+
Each workload kind can be viewed separately.
404+
The lists summarize actionable information about the workloads,
405+
such as the number of ready pods for a ReplicaSet or current memory usage for a Pod.
389406
-->
390407
#### 负载
391408

392409
显示选中的名字空间中所有运行的应用。
393410
视图按照负载类型(如 Deployment、ReplicaSet、StatefulSet 等)罗列应用,并且每种负载都可以单独查看。
394-
列表总结了关于负载的可执行信息,比如一个 ReplicaSet 的准备状态的 Pod 数量,或者目前一个 Pod 的内存使用量
411+
列表总结了关于负载的可执行信息,比如一个 ReplicaSet 的就绪状态的 Pod 数量,或者目前一个 Pod 的内存用量
395412

396413
<!--
397-
Detail views for workloads show status and specification information and surface relationships between objects. For example, Pods that Replica Set is controlling or New Replica Sets and Horizontal Pod Autoscalers for Deployments.
414+
Detail views for workloads show status and specification information and
415+
surface relationships between objects.
416+
For example, Pods that Replica Set is controlling or New ReplicaSets and HorizontalPodAutoscalers for Deployments.
398417
-->
399418
工作负载的详情视图展示了对象的状态、详细信息和相互关系。
400-
例如,ReplicaSet 所控制的 Pod,或者 Deployment 关联的 新 ReplicaSet 和 Pod 水平扩展控制器。
419+
例如,ReplicaSet 所控制的 Pod,或者 Deployment 所关联的新 ReplicaSet 和
420+
HorizontalPodAutoscalers。
401421

402422
<!--
403423
#### Services
424+
404425
Shows Kubernetes resources that allow for exposing services to external world and discovering them within a cluster. For that reason, Service and Ingress views show Pods targeted by them, internal endpoints for cluster connections and external endpoints for external users.
405426
-->
406427
#### 服务
@@ -411,7 +432,7 @@ Shows Kubernetes resources that allow for exposing services to external world an
411432
<!--
412433
#### Storage
413434
414-
Storage view shows Persistent Volume Claim resources which are used by applications for storing data.
435+
Storage view shows PersistentVolumeClaim resources which are used by applications for storing data.
415436
-->
416437
#### 存储
417438

@@ -425,7 +446,7 @@ Shows all Kubernetes resources that are used for live configuration of applicati
425446
#### ConfigMap 和 Secret
426447

427448
展示的所有 Kubernetes 资源是在集群中运行的应用程序的实时配置。
428-
通过这个视图可以编辑和管理配置对象,并显示那些默认隐藏的 secret
449+
通过这个视图可以编辑和管理配置对象,并显示那些默认隐藏的 Secret
429450

430451
<!--
431452
#### Logs viewer
@@ -434,7 +455,8 @@ Pod lists and detail pages link to logs viewer that is built into Dashboard. The
434455
-->
435456
#### 日志查看器
436457

437-
Pod 列表和详细信息页面可以链接到 Dashboard 内置的日志查看器。查看器可以钻取属于同一个 Pod 的不同容器的日志。
458+
Pod 列表和详细信息页面可以链接到 Dashboard 内置的日志查看器。
459+
查看器可以深入查看属于同一个 Pod 的不同容器的日志。
438460

439461
<!--
440462
![Logs viewer](/images/docs/ui-dashboard-logs-view.png)

0 commit comments

Comments
 (0)