From 44ad19afbd94f2a9c118bd68ddd21912c7ea05b9 Mon Sep 17 00:00:00 2001 From: "wei.wang" Date: Wed, 25 May 2022 02:39:05 +0800 Subject: [PATCH] [zh]Update content/zh/docs/tasks/access-application-cluster/access-cluster-services.md --- .../access-cluster-services.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/content/zh/docs/tasks/access-application-cluster/access-cluster-services.md b/content/zh/docs/tasks/access-application-cluster/access-cluster-services.md index 53b92c2d96..2c38f883fd 100644 --- a/content/zh/docs/tasks/access-application-cluster/access-cluster-services.md +++ b/content/zh/docs/tasks/access-application-cluster/access-cluster-services.md @@ -118,23 +118,23 @@ The output is similar to this: 输出类似于: ``` -Kubernetes master is running at https://104.197.5.247 -elasticsearch-logging is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy -kibana-logging is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/kibana-logging/proxy -kube-dns is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/kube-dns/proxy -grafana is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy -heapster is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/monitoring-heapster/proxy +Kubernetes master is running at https://192.0.2.1 +elasticsearch-logging is running at https://192.0.2.1/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy +kibana-logging is running at https://192.0.2.1/api/v1/namespaces/kube-system/services/kibana-logging/proxy +kube-dns is running at https://192.0.2.1/api/v1/namespaces/kube-system/services/kube-dns/proxy +grafana is running at https://192.0.2.1/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy +heapster is running at https://192.0.2.1/api/v1/namespaces/kube-system/services/monitoring-heapster/proxy ``` 这一输出显示了用 proxy 动词访问每个服务时可用的 URL。例如,此集群 (使用 Elasticsearch)启用了集群层面的日志。如果提供合适的凭据,可以通过 -`https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/` +`https://192.0.2.1/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/` 访问,或通过一个 `kubectl proxy` 来访问: `http://localhost:8080/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/`。 @@ -191,7 +191,7 @@ URL 的 `` 段支持的格式为: * 如要访问 Elasticsearch 服务末端 `_search?q=user:kimchy`,你可以使用: ``` - http://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/_search?q=user:kimchy + http://192.0.2.1/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/_search?q=user:kimchy ```