Skip to content

Commit 2c8a8d3

Browse files
authored
Merge pull request #35169 from windsonsea/debugclus
[zh-cn] resync /concepts/security/controlling-access.md
2 parents 1367587 + aee0a6d commit 2c8a8d3

File tree

1 file changed

+11
-63
lines changed

1 file changed

+11
-63
lines changed

content/zh-cn/docs/concepts/security/controlling-access.md

Lines changed: 11 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,18 @@ following diagram:
4040
## 传输安全 {#transport-security}
4141

4242
<!--
43-
In a typical Kubernetes cluster, the API serves on port 443, protected by TLS.
43+
By default, the Kubernetes API server listens on port 6443 on the first non-localhost network interface, protected by TLS. In a typical production Kubernetes cluster, the API serves on port 443. The port can be changed with the `--secure-port`, and the listening IP address with the `--bind-address` flag.
44+
4445
The API server presents a certificate. This certificate may be signed using
4546
a private certificate authority (CA), or based on a public key infrastructure linked
46-
to a generally recognized CA.
47+
to a generally recognized CA. The certificate and corresponding private key can be set by using the `--tls-cert-file` and `--tls-private-key-file` flags.
4748
-->
48-
在典型的 Kubernetes 集群中,API 服务器在 443 端口上提供服务,受 TLS 保护。
49-
API 服务器出示证书。
50-
该证书可以使用私有证书颁发机构(CA)签名,也可以基于链接到公认的 CA 的公钥基础架构签名。
49+
默认情况下,Kubernetes API 服务器在第一个非 localhost 网络接口的 6443 端口上进行监听,
50+
受 TLS 保护。在一个典型的 Kubernetes 生产集群中,API 使用 443 端口。
51+
该端口可以通过 `--secure-port` 进行变更,监听 IP 地址可以通过 `--bind-address` 标志进行变更。
52+
53+
API 服务器出示证书。该证书可以使用私有证书颁发机构(CA)签名,也可以基于链接到公认的 CA 的公钥基础架构签名。
54+
该证书和相应的私钥可以通过使用 `--tls-cert-file``--tls-private-key-file` 标志进行设置。
5155

5256
<!--
5357
If your cluster uses a private certificate authority, you need a copy of that CA
@@ -243,63 +247,7 @@ For more information, see [Auditing](/docs/tasks/debug/debug-cluster/audit/).
243247
Kubernetes 审计提供了一套与安全相关的、按时间顺序排列的记录,其中记录了集群中的操作序列。
244248
集群对用户、使用 Kubernetes API 的应用程序以及控制平面本身产生的活动进行审计。
245249

246-
更多信息请参考 [审计](/zh-cn/docs/tasks/debug/debug-cluster/audit/).
247-
248-
<!-- ## API server ports and IPs -->
249-
## API 服务器端口和 IP {#api-server-ports-and-ips}
250-
251-
<!--
252-
The previous discussion applies to requests sent to the secure port of the API server
253-
(the typical case). The API server can actually serve on 2 ports:
254-
255-
By default, the Kubernetes API server serves HTTP on 2 ports:
256-
-->
257-
前面的讨论适用于发送到 API 服务器的安全端口的请求(典型情况)。 API 服务器实际上可以在 2 个端口上提供服务:
258-
259-
默认情况下,Kubernetes API 服务器在 2 个端口上提供 HTTP 服务:
260-
261-
<!--
262-
1. `localhost` port:
263-
264-
- is intended for testing and bootstrap, and for other components of the master node
265-
(scheduler, controller-manager) to talk to the API
266-
- no TLS
267-
- default is port 8080
268-
- default IP is localhost, change with `--insecure-bind-address` flag.
269-
- request **bypasses** authentication and authorization modules.
270-
- request handled by admission control module(s).
271-
- protected by need to have host access
272-
273-
2. “Secure port”:
274-
275-
- use whenever possible
276-
- uses TLS. Set cert with `--tls-cert-file` and key with `--tls-private-key-file` flag.
277-
- default is port 6443, change with `--secure-port` flag.
278-
- default IP is first non-localhost network interface, change with `--bind-address` flag.
279-
- request handled by authentication and authorization modules.
280-
- request handled by admission control module(s).
281-
- authentication and authorization modules run.
282-
-->
283-
1. `localhost` 端口:
284-
285-
- 用于测试和引导,以及主控节点上的其他组件(调度器,控制器管理器)与 API 通信
286-
- 没有 TLS
287-
- 默认为端口 8080
288-
- 默认 IP 为 localhost,使用 `--insecure-bind-address` 进行更改
289-
- 请求 **绕过** 身份认证和鉴权模块
290-
- 由准入控制模块处理的请求
291-
- 受需要访问主机的保护
292-
293-
2. “安全端口”:
294-
295-
- 尽可能使用
296-
- 使用 TLS。 用 `--tls-cert-file` 设置证书,用 `--tls-private-key-file` 设置密钥
297-
- 默认端口 6443,使用 `--secure-port` 更改
298-
- 默认 IP 是第一个非本地网络接口,使用 `--bind-address` 更改
299-
- 请求须经身份认证和鉴权组件处理
300-
- 请求须经准入控制模块处理
301-
- 身份认证和鉴权模块运行
302-
250+
更多信息请参考[审计](/zh-cn/docs/tasks/debug/debug-cluster/audit/)
303251

304252
## {{% heading "whatsnext" %}}
305253

@@ -348,4 +296,4 @@ You can learn about:
348296
你可以了解
349297
- Pod 如何使用
350298
[Secrets](/zh-cn/docs/concepts/configuration/secret/#service-accounts-automatically-create-and-attach-secrets-with-api-credentials)
351-
获取 API 凭证.
299+
获取 API 凭证

0 commit comments

Comments
 (0)