@@ -25,7 +25,7 @@ their own IPs. In many cases, the node IPs, pod IPs, and some service IPs on a
25
25
routable, so they will not be reachable from a machine outside the cluster,
26
26
such as your desktop machine.
27
27
-->
28
- ## 访问集群上运行的服务
28
+ ## 访问集群上运行的服务 {#accessing-services-running-on-the-cluster}
29
29
30
30
在 Kubernetes 里,[ 节点] ( /zh-cn/docs/concepts/architecture/nodes/ ) 、
31
31
[ Pod] ( /zh-cn/docs/concepts/workloads/pods/ ) 和
@@ -186,22 +186,22 @@ URL 的 `<service_name>` 段支持的格式为:
186
186
187
187
* To access the Elasticsearch service endpoint `_search?q=user:kimchy`, you would use:
188
188
-->
189
- ##### 示例
189
+ ##### 示例 {#examples}
190
190
191
- * 如要访问 Elasticsearch 服务末端 ` _search?q=user:kimchy ` ,你可以使用 :
191
+ * 如要访问 Elasticsearch 服务末端 ` _search?q=user:kimchy ` ,你可以使用以下地址 :
192
192
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
+ ```
196
196
197
197
<!--
198
198
* To access the Elasticsearch cluster health information `_cluster/health?pretty=true`, you would use:
199
199
-->
200
- * 如要访问 Elasticsearch 集群健康信息`_cluster/health?pretty=true`,你会使用 :
200
+ * 如要访问 Elasticsearch 集群健康信息` _cluster/health?pretty=true ` ,你可以使用以下地址 :
201
201
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
+ ```
205
205
206
206
<!--
207
207
The health information is similar to this:
@@ -226,18 +226,18 @@ URL 的 `<service_name>` 段支持的格式为:
226
226
<!--
227
227
* To access the *https* Elasticsearch service health information `_cluster/health?pretty=true`, you would use:
228
228
-->
229
- * 要访问 * https* Elasticsearch 服务健康信息 `_cluster/health?pretty=true`,你会使用 :
229
+ * 如要访问 ** https** Elasticsearch 服务健康信息 `_cluster/health?pretty=true`,你可以使用以下地址 :
230
230
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
+ ```
234
234
235
235
<!--
236
236
#### Using web browsers to access services running on the cluster
237
237
238
238
You may be able to put an apiserver proxy URL into the address bar of a browser. However:
239
239
-->
240
- #### 通过 Web 浏览器访问集群中运行的服务
240
+ #### 通过 Web 浏览器访问集群中运行的服务 {#uusing-web-browsers-to-access-services-running-on-the-cluster}
241
241
242
242
你或许能够将 API 服务器代理的 URL 放入浏览器的地址栏,然而:
243
243
0 commit comments