@@ -230,7 +230,7 @@ Calico, Canal, and Flannel CNI providers are verified to support HostPort.
230
230
For more information, see the [CNI portmap documentation](https://github.com/containernetworking/plugins/blob/master/plugins/meta/portmap/README.md).
231
231
232
232
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`.
234
234
-->
235
235
## ` HostPort ` 服务无法工作
236
236
@@ -242,7 +242,7 @@ services](/docs/concepts/services-networking/service/#nodeport) or use `HostNetw
242
242
有关更多信息,请参考 [ CNI portmap 文档] ( https://github.com/containernetworking/plugins/blob/master/plugins/meta/portmap/README.md ) .
243
243
244
244
如果你的网络提供商不支持 portmap CNI 插件,你或许需要使用
245
- [ NodePort 服务的功能] ( /zh/docs/concepts/services-networking/service/#nodeport )
245
+ [ NodePort 服务的功能] ( /zh/docs/concepts/services-networking/service/#type- nodeport )
246
246
或者使用 ` HostNetwork=true ` 。
247
247
248
248
<!--
@@ -390,13 +390,22 @@ the `ca.key` you must sign the embedded certificates in the `kubelet.conf` exter
390
390
3 . 将得到的 ` kubelet.conf ` 文件复制到故障节点上,作为 ` /etc/kubernetes/kubelet.conf ` 。
391
391
4 . 在故障节点上重启 kubelet(` systemctl restart kubelet ` ),等待 ` /var/lib/kubelet/pki/kubelet-client-current.pem ` 重新创建。
392
392
<!--
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.
395
405
1. Make sure the node becomes ` Ready`.
396
406
-->
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`。
400
409
401
410
# # 在 Vagrant 中使用 flannel 作为 pod 网络时的默认 NIC
402
411
@@ -667,6 +676,7 @@ For [flex-volume support](https://github.com/kubernetes/community/blob/ab55d85/c
667
676
Kubernetes components like the kubelet and kube-controller-manager use the default path of
668
677
`/usr/libexec/kubernetes/kubelet-plugins/volume/exec/`, yet the flex-volume directory _must be writeable_
669
678
for the feature to work.
679
+ (**Note**: FlexVolume was deprecated in the Kubernetes v1.23 release)
670
680
-->
671
681
## 节点上的 ` /usr ` 被以只读方式挂载 {#usr-mounted-read-only}
672
682
@@ -676,6 +686,7 @@ for the feature to work.
676
686
类似 kubelet 和 kube-controller-manager 这类 Kubernetes 组件使用默认路径
677
687
` /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ ` ,
678
688
而 FlexVolume 的目录 _ 必须是可写入的_ ,该功能特性才能正常工作。
689
+ (** 注意** :FlexVolume 在 Kubernetes v1.23 版本中已被弃用)
679
690
680
691
<!--
681
692
To workaround this issue you can configure the flex-volume directory using the kubeadm
0 commit comments