diff --git a/content/zh/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md b/content/zh/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md index 1c13fc0b5b..dabedb65d1 100644 --- a/content/zh/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md +++ b/content/zh/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md @@ -230,7 +230,7 @@ Calico, Canal, and Flannel CNI providers are verified to support HostPort. For more information, see the [CNI portmap documentation](https://github.com/containernetworking/plugins/blob/master/plugins/meta/portmap/README.md). If your network provider does not support the portmap CNI plugin, you may need to use the [NodePort feature of -services](/docs/concepts/services-networking/service/#nodeport) or use `HostNetwork=true`. +services](/docs/concepts/services-networking/service/#type-nodeport) or use `HostNetwork=true`. --> ## `HostPort` 服务无法工作 @@ -242,7 +242,7 @@ services](/docs/concepts/services-networking/service/#nodeport) or use `HostNetw 有关更多信息,请参考 [CNI portmap 文档](https://github.com/containernetworking/plugins/blob/master/plugins/meta/portmap/README.md). 如果你的网络提供商不支持 portmap CNI 插件,你或许需要使用 -[NodePort 服务的功能](/zh/docs/concepts/services-networking/service/#nodeport) +[NodePort 服务的功能](/zh/docs/concepts/services-networking/service/#type-nodeport) 或者使用 `HostNetwork=true`。 +5. 手动编辑 `kubelet.conf` 指向轮换的 kubelet 客户端证书,方法是将 `client-certificate-data` 和 `client-key-data` 替换为: + + ```yaml + client-certificate: /var/lib/kubelet/pki/kubelet-client-current.pem + client-key: /var/lib/kubelet/pki/kubelet-client-current.pem + ``` + + -5. 在故障节点上运行 `kubeadm init phase kubelet-finalize all`。 - 这将使新的 `kubelet.conf` 文件使用 `/var/lib/kubelet/pki/kubelet-client-current.pem` 并将重新启动 kubelet。 -6. 确保节点状况变为 `Ready`。 +6. 重新启动 kubelet。 +7. 确保节点状况变为 `Ready`。 ## 在 Vagrant 中使用 flannel 作为 pod 网络时的默认 NIC @@ -667,6 +676,7 @@ For [flex-volume support](https://github.com/kubernetes/community/blob/ab55d85/c Kubernetes components like the kubelet and kube-controller-manager use the default path of `/usr/libexec/kubernetes/kubelet-plugins/volume/exec/`, yet the flex-volume directory _must be writeable_ for the feature to work. +(**Note**: FlexVolume was deprecated in the Kubernetes v1.23 release) --> ## 节点上的 `/usr` 被以只读方式挂载 {#usr-mounted-read-only} @@ -676,6 +686,7 @@ for the feature to work. 类似 kubelet 和 kube-controller-manager 这类 Kubernetes 组件使用默认路径 `/usr/libexec/kubernetes/kubelet-plugins/volume/exec/`, 而 FlexVolume 的目录 _必须是可写入的_,该功能特性才能正常工作。 +(**注意**:FlexVolume 在 Kubernetes v1.23 版本中已被弃用)