From 811eded1c099b5fff6937b9b87c6cf6617e5783f Mon Sep 17 00:00:00 2001 From: yaowenqiang Date: Wed, 28 Oct 2020 13:37:12 +0800 Subject: [PATCH] fix wrong anchor link --- .../docs/tasks/access-application-cluster/access-cluster.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/zh/docs/tasks/access-application-cluster/access-cluster.md b/content/zh/docs/tasks/access-application-cluster/access-cluster.md index 26b6dca834..7708022f31 100644 --- a/content/zh/docs/tasks/access-application-cluster/access-cluster.md +++ b/content/zh/docs/tasks/access-application-cluster/access-cluster.md @@ -371,7 +371,7 @@ You have several options for connecting to nodes, pods and services from outside 如果服务不能够安全地暴露到互联网,或者服务不能获得节点 IP 端口的访问权限,或者是为了 debug,那么请使用此选项。 - 代理可能会给一些 web 应用带来问题。 - 只适用于 HTTP/HTTPS。 - - 更多详细信息在 [这里]。 + - 更多详细信息在 [这里](#manually-constructing-apiserver-proxy-urls)。 - 从集群中的 node 或者 pod 中访问。 - 运行一个 pod,然后使用 [kubectl exec](/docs/reference/generated/kubectl/kubectl-commands/#exec) 来连接 pod 里的 shell。 然后从 shell 中连接其它的节点、pod 和服务。 @@ -432,7 +432,7 @@ The supported formats for the name segment of the URL are: * `https::` - proxies to the default or unnamed port using https (note the trailing colon) * `https::` - proxies to the specified port using https --> -#### 手动构建 apiserver 代理 URL +#### 手动构建 apiserver 代理 URL {#manually-constructing-apiserver-proxy-urls} 如上所述,您可以使用 `kubectl cluster-info` 命令来获得服务的代理 URL。要创建包含服务端点、后缀和参数的代理 URL,只需添加到服务的代理 URL: `http://`*`kubernetes_master_address`*`/api/v1/namespaces/`*`namespace_name`*`/services/`*`service_name[:port_name]`*`/proxy`