From 87f67c8a72616efc481ca574db43c61e81ea6101 Mon Sep 17 00:00:00 2001 From: "xin.li" Date: Thu, 17 Mar 2022 18:05:02 +0800 Subject: [PATCH] [zh] Update kubelet-tls-bootstrapping.md --- .../access-authn-authz/authorization.md | 2 +- .../kubelet-tls-bootstrapping.md | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/content/zh/docs/reference/access-authn-authz/authorization.md b/content/zh/docs/reference/access-authn-authz/authorization.md index a9fdc7a094..8cd4e605fa 100644 --- a/content/zh/docs/reference/access-authn-authz/authorization.md +++ b/content/zh/docs/reference/access-authn-authz/authorization.md @@ -263,7 +263,7 @@ no ``` 类似地,检查名字空间 `dev` 里的 `dev-sa` 服务账号是否可以列举名字空间 `target` 里的 Pod: diff --git a/content/zh/docs/reference/command-line-tools-reference/kubelet-tls-bootstrapping.md b/content/zh/docs/reference/command-line-tools-reference/kubelet-tls-bootstrapping.md index 4151e1bc99..132accf337 100644 --- a/content/zh/docs/reference/command-line-tools-reference/kubelet-tls-bootstrapping.md +++ b/content/zh/docs/reference/command-line-tools-reference/kubelet-tls-bootstrapping.md @@ -15,12 +15,12 @@ content_type: concept 在一个 Kubernetes 集群中,工作节点上的组件(kubelet 和 kube-proxy)需要与 -Kubernetes 主控组件通信,尤其是 kube-apiserver。 +Kubernetes 控制平面组件通信,尤其是 kube-apiserver。 为了确保通信本身是私密的、不被干扰,并且确保集群的每个组件都在与另一个 可信的组件通信,我们强烈建议使用节点上的客户端 TLS 证书。 @@ -89,7 +89,7 @@ Note that the above process depends upon: All of the following are responsibilities of whoever sets up and manages the cluster: 1. Creating the CA key and certificate -2. Distributing the CA certificate to the master nodes, where kube-apiserver is running +2. Distributing the CA certificate to the control plane nodes, where kube-apiserver is running 3. Creating a key and certificate for each kubelet; strongly recommended to have a unique one, with a unique CN, for each kubelet 4. Signing the kubelet certificate using the CA key 5. Distributing the kubelet key and signed certificate to the specific node on which the kubelet is running @@ -100,7 +100,7 @@ a cluster. 负责部署和管理集群的人有以下责任: 1. 创建 CA 密钥和证书 -2. 将 CA 证书发布到 kube-apiserver 运行所在的主控节点上 +2. 将 CA 证书发布到 kube-apiserver 运行所在的控制平面节点上 3. 为每个 kubelet 创建密钥和证书;强烈建议为每个 kubelet 使用独一无二的、 CN 取值与众不同的密钥和证书 4. 使用 CA 密钥对 kubelet 证书签名 @@ -191,21 +191,21 @@ In addition, you need your Kubernetes Certificate Authority (CA). ## Certificate Authority As without bootstrapping, you will need a Certificate Authority (CA) key and certificate. As without bootstrapping, these will be used -to sign the kubelet certificate. As before, it is your responsibility to distribute them to master nodes. +to sign the kubelet certificate. As before, it is your responsibility to distribute them to control plane nodes. --> ## 证书机构 {#certificate-authority} 就像在没有启动引导的情况下,你会需要证书机构(CA)密钥和证书。 这些数据会被用来对 kubelet 证书进行签名。 -如前所述,将证书机构密钥和证书发布到主控节点是你的责任。 +如前所述,将证书机构密钥和证书发布到控制平面节点是你的责任。 -就本文而言,我们假定这些数据被发布到主控节点上的 +就本文而言,我们假定这些数据被发布到控制平面节点上的 `/var/lib/kubernetes/ca.pem`(证书)和 `/var/lib/kubernetes/ca-key.pem`(密钥)文件中。 我们将这两个文件称作“Kubernetes CA 证书和密钥”。 @@ -360,7 +360,7 @@ If you want to use bootstrap tokens, you must enable it on kube-apiserver with t ### 访问密钥和证书 {#access-to-key-and-certificate} -如前所述,你需要创建一个 Kubernetes CA 密钥和证书,并将其发布到主控节点。 +如前所述,你需要创建一个 Kubernetes CA 密钥和证书,并将其发布到控制平面节点。 这些数据会被控制器管理器来对 kubelet 证书进行签名。 ## kubelet 配置 {#kubelet-configuration} -最后,当主控节点被正确配置并且所有必要的身份认证和鉴权机制都就绪时, +最后,当控制平面节点被正确配置并且所有必要的身份认证和鉴权机制都就绪时, 我们可以配置 kubelet。