Merge pull request #24759 from yaowenqiang/yaowenqiang-patch-3

fix wrong anchor link
This commit is contained in:
Kubernetes Prow Robot
2020-10-28 22:28:58 -07:00
committed by GitHub
@@ -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:<service_name>:` - proxies to the default or unnamed port using https (note the trailing colon)
* `https:<service_name>:<port_name>` - 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`