Skip to content

Commit 6f38fd9

Browse files
committed
[zh] add min-kubernetes-server-version
1 parent 65ed733 commit 6f38fd9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

content/zh-cn/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
title: 使用端口转发来访问集群中的应用
33
content_type: task
44
weight: 40
5+
min-kubernetes-server-version: v1.10
56
---
67

78
<!--
89
title: Use Port Forwarding to Access Applications in a Cluster
910
content_type: task
1011
weight: 40
12+
min-kubernetes-server-version: v1.10
1113
-->
1214

1315
<!-- overview -->
@@ -16,8 +18,8 @@ This page shows how to use `kubectl port-forward` to connect to a MongoDB
1618
server running in a Kubernetes cluster. This type of connection can be useful
1719
for database debugging.
1820
-->
19-
本文展示如何使用 `kubectl port-forward` 连接到在 Kubernetes 集群中
20-
运行的 MongoDB 服务。这种类型的连接对数据库调试很有用。
21+
本文展示如何使用 `kubectl port-forward` 连接到在 Kubernetes 集群中运行的 MongoDB 服务。
22+
这种类型的连接对数据库调试很有用。
2123

2224
## {{% heading "prerequisites" %}}
2325

@@ -34,9 +36,9 @@ for database debugging.
3436
3537
1. Create a Deployment that runs MongoDB:
3638
-->
37-
## 创建 MongoDB deployment 和服务
39+
## 创建 MongoDB Deployment 和服务
3840

39-
1. 创建一个运行 MongoDB 的 deployment
41+
1. 创建一个运行 MongoDB 的 Deployment
4042

4143
```shell
4244
kubectl apply -f https://k8s.io/examples/application/mongodb/mongo-deployment.yaml
@@ -54,7 +56,7 @@ for database debugging.
5456
<!--
5557
View the pod status to check that it is ready:
5658
-->
57-
查看 pod 状态,检查其是否准备就绪:
59+
查看 Pod 状态,检查其是否准备就绪:
5860

5961
```shell
6062
kubectl get pods
@@ -63,7 +65,7 @@ for database debugging.
6365
<!--
6466
The output displays the pod created:
6567
-->
66-
输出显示创建的 pod
68+
输出显示创建的 Pod
6769

6870
```
6971
NAME READY STATUS RESTARTS AGE
@@ -149,7 +151,7 @@ for database debugging.
149151
<!--
150152
3. Verify that the MongoDB server is running in the Pod, and listening on port 27017:
151153
-->
152-
3. 验证 MongoDB 服务是否运行在 Pod 中并且在 27017 端口上监听
154+
3. 验证 MongoDB 服务是否运行在 Pod 中并且在监听 27017 端口
153155

154156
<!--
155157
```shell
@@ -184,7 +186,7 @@ for database debugging.
184186
## 转发一个本地端口到 Pod 端口
185187

186188
1. `kubectl port-forward` 允许使用资源名称
187-
(例如 pod 名称)来选择匹配的 pod 来进行端口转发。
189+
(例如 Pod 名称)来选择匹配的 Pod 来进行端口转发。
188190

189191
<!--
190192
```shell

0 commit comments

Comments
 (0)