Skip to content

Commit 55cb130

Browse files
authored
[zh] sync translation troubleshooting-kubeadm.md (#31084)
* [zh] sync translation troubleshooting-kubeadm.md * [zh] add **Note** englisg comment
1 parent 13bf9ad commit 55cb130

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

content/zh/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Calico, Canal, and Flannel CNI providers are verified to support HostPort.
230230
For more information, see the [CNI portmap documentation](https://github.com/containernetworking/plugins/blob/master/plugins/meta/portmap/README.md).
231231
232232
If your network provider does not support the portmap CNI plugin, you may need to use the [NodePort feature of
233-
services](/docs/concepts/services-networking/service/#nodeport) or use `HostNetwork=true`.
233+
services](/docs/concepts/services-networking/service/#type-nodeport) or use `HostNetwork=true`.
234234
-->
235235
## `HostPort` 服务无法工作
236236

@@ -242,7 +242,7 @@ services](/docs/concepts/services-networking/service/#nodeport) or use `HostNetw
242242
有关更多信息,请参考 [CNI portmap 文档](https://github.com/containernetworking/plugins/blob/master/plugins/meta/portmap/README.md).
243243

244244
如果你的网络提供商不支持 portmap CNI 插件,你或许需要使用
245-
[NodePort 服务的功能](/zh/docs/concepts/services-networking/service/#nodeport)
245+
[NodePort 服务的功能](/zh/docs/concepts/services-networking/service/#type-nodeport)
246246
或者使用 `HostNetwork=true`
247247

248248
<!--
@@ -390,13 +390,22 @@ the `ca.key` you must sign the embedded certificates in the `kubelet.conf` exter
390390
3. 将得到的 `kubelet.conf` 文件复制到故障节点上,作为 `/etc/kubernetes/kubelet.conf`
391391
4. 在故障节点上重启 kubelet(`systemctl restart kubelet`),等待 `/var/lib/kubelet/pki/kubelet-client-current.pem` 重新创建。
392392
<!--
393-
1. Run `kubeadm init phase kubelet-finalize all` on the failed node. This will make the new
394-
`kubelet.conf` file use `/var/lib/kubelet/pki/kubelet-client-current.pem` and will restart the kubelet.
393+
1. Manually edit the `kubelet.conf` to point to the rotated kubelet client certificates, by replacing
394+
`client-certificate-data` and `client-key-data` with:
395+
-->
396+
5. 手动编辑 `kubelet.conf` 指向轮换的 kubelet 客户端证书,方法是将 `client-certificate-data``client-key-data` 替换为:
397+
398+
```yaml
399+
client-certificate: /var/lib/kubelet/pki/kubelet-client-current.pem
400+
client-key: /var/lib/kubelet/pki/kubelet-client-current.pem
401+
```
402+
403+
<!--
404+
1. Restart the kubelet.
395405
1. Make sure the node becomes `Ready`.
396406
-->
397-
5. 在故障节点上运行 `kubeadm init phase kubelet-finalize all`
398-
这将使新的 `kubelet.conf` 文件使用 `/var/lib/kubelet/pki/kubelet-client-current.pem` 并将重新启动 kubelet。
399-
6. 确保节点状况变为 `Ready`
407+
6. 重新启动 kubelet。
408+
7. 确保节点状况变为 `Ready`。
400409

401410
## 在 Vagrant 中使用 flannel 作为 pod 网络时的默认 NIC
402411

@@ -667,6 +676,7 @@ For [flex-volume support](https://github.com/kubernetes/community/blob/ab55d85/c
667676
Kubernetes components like the kubelet and kube-controller-manager use the default path of
668677
`/usr/libexec/kubernetes/kubelet-plugins/volume/exec/`, yet the flex-volume directory _must be writeable_
669678
for the feature to work.
679+
(**Note**: FlexVolume was deprecated in the Kubernetes v1.23 release)
670680
-->
671681
## 节点上的 `/usr` 被以只读方式挂载 {#usr-mounted-read-only}
672682

@@ -676,6 +686,7 @@ for the feature to work.
676686
类似 kubelet 和 kube-controller-manager 这类 Kubernetes 组件使用默认路径
677687
`/usr/libexec/kubernetes/kubelet-plugins/volume/exec/`
678688
而 FlexVolume 的目录 _必须是可写入的_,该功能特性才能正常工作。
689+
**注意**:FlexVolume 在 Kubernetes v1.23 版本中已被弃用)
679690

680691
<!--
681692
To workaround this issue you can configure the flex-volume directory using the kubeadm

0 commit comments

Comments
 (0)