Skip to content

Commit 59831b7

Browse files
authored
Merge pull request #35414 from yanrongshi/zh-cn]update-access-cluster-services.md
[zh-cn]Update access-cluster-services.md
2 parents 9cea107 + c12f94d commit 59831b7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ their own IPs. In many cases, the node IPs, pod IPs, and some service IPs on a
2525
routable, so they will not be reachable from a machine outside the cluster,
2626
such as your desktop machine.
2727
-->
28-
## 访问集群上运行的服务
28+
## 访问集群上运行的服务 {#accessing-services-running-on-the-cluster}
2929

3030
在 Kubernetes 里,[节点](/zh-cn/docs/concepts/architecture/nodes/)
3131
[Pod](/zh-cn/docs/concepts/workloads/pods/)
@@ -186,22 +186,22 @@ URL 的 `<service_name>` 段支持的格式为:
186186
187187
* To access the Elasticsearch service endpoint `_search?q=user:kimchy`, you would use:
188188
-->
189-
##### 示例
189+
##### 示例 {#examples}
190190

191-
* 如要访问 Elasticsearch 服务末端 `_search?q=user:kimchy`你可以使用
191+
* 如要访问 Elasticsearch 服务末端 `_search?q=user:kimchy`你可以使用以下地址
192192

193-
```
194-
http://192.0.2.1/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/_search?q=user:kimchy
195-
```
193+
```
194+
http://192.0.2.1/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/_search?q=user:kimchy
195+
```
196196

197197
<!--
198198
* To access the Elasticsearch cluster health information `_cluster/health?pretty=true`, you would use:
199199
-->
200-
* 如要访问 Elasticsearch 集群健康信息`_cluster/health?pretty=true`,你会使用
200+
* 如要访问 Elasticsearch 集群健康信息`_cluster/health?pretty=true`你可以使用以下地址
201201

202-
```
203-
https://192.0.2.1/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/_cluster/health?pretty=true
204-
```
202+
```
203+
https://192.0.2.1/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/_cluster/health?pretty=true
204+
```
205205

206206
<!--
207207
The health information is similar to this:
@@ -226,18 +226,18 @@ URL 的 `<service_name>` 段支持的格式为:
226226
<!--
227227
* To access the *https* Elasticsearch service health information `_cluster/health?pretty=true`, you would use:
228228
-->
229-
* 要访问 *https* Elasticsearch 服务健康信息 `_cluster/health?pretty=true`,你会使用
229+
* 如要访问 **https** Elasticsearch 服务健康信息 `_cluster/health?pretty=true`,你可以使用以下地址
230230

231-
```
232-
https://192.0.2.1/api/v1/namespaces/kube-system/services/https:elasticsearch-logging:/proxy/_cluster/health?pretty=true
233-
```
231+
```
232+
https://192.0.2.1/api/v1/namespaces/kube-system/services/https:elasticsearch-logging:/proxy/_cluster/health?pretty=true
233+
```
234234
235235
<!--
236236
#### Using web browsers to access services running on the cluster
237237
238238
You may be able to put an apiserver proxy URL into the address bar of a browser. However:
239239
-->
240-
#### 通过 Web 浏览器访问集群中运行的服务
240+
#### 通过 Web 浏览器访问集群中运行的服务 {#uusing-web-browsers-to-access-services-running-on-the-cluster}
241241
242242
你或许能够将 API 服务器代理的 URL 放入浏览器的地址栏,然而:
243243

0 commit comments

Comments
 (0)