@@ -124,9 +124,9 @@ Windows 容器仅能调度到 Windows 节点,Linux 容器则只能调度到 Li
124
124
125
125
| Kubernetes 版本 | Windows Server LTSC 版本 | Windows Server SAC 版本 |
126
126
| --- | --- | --- | --- |
127
- | * Kubernetes v1.19* | Windows Server 2019 | Windows Server ver 1909, Windows Server ver 2004 |
128
127
| * Kubernetes v1.20* | Windows Server 2019 | Windows Server ver 1909, Windows Server ver 2004 |
129
128
| * Kubernetes v1.21* | Windows Server 2019 | Windows Server ver 2004, Windows Server ver 20H2 |
129
+ | * Kubernetes v1.22* | Windows Server 2019 | Windows Server ver 2004, Windows Server ver 20H2 |
130
130
131
131
<!--
132
132
Information on the different Windows Server servicing channels including their
@@ -184,13 +184,25 @@ limitation and compatibility rules will change.
184
184
<!--
185
185
#### Pause Image
186
186
187
- Microsoft maintains a Windows pause infrastructure container at
188
- `mcr.microsoft.com/oss/kubernetes/pause:3.4.1`.
187
+ Kubernetes maintains a multi-architecture image that includes support for Windows.
188
+ For Kubernetes v1.22 the recommended pause image is `k8s.gcr.io/pause:3.5`.
189
+ The [source code](https://github.com/kubernetes/kubernetes/tree/master/build/pause)
190
+ is available on GitHub.
191
+
192
+ Microsoft maintains a multi-architecture image with Linux and Windows amd64 support at `mcr.microsoft.com/oss/kubernetes/pause:3.5`.
193
+ This image is built from the same source as the Kubernetes maintained image but all of the Windows binaries are [authenticode signed](https://docs.microsoft.com/en-us/windows-hardware/drivers/install/authenticode) by Microsoft.
194
+ The Microsoft maintained image is recommended for production environments when signed binaries are required.
189
195
-->
190
196
#### Pause 镜像 {#pause-image}
191
197
192
- Microsoft 在 ` mcr.microsoft.com/oss/kubernetes/pause:3.4.1 ` 处维护
193
- 一个 pause 基础设施容器镜像。
198
+ Kubernetes 维护着一个多体系结构镜像,其中包括对 Windows 的支持。
199
+ 对于 Kubernetes v1.22,推荐的 pause 镜像是 ` k8s.gcr.io/pause:3.5 ` 。
200
+ [ 源代码] ( https://github.com/kubernetes/kubernetes/tree/master/build/pause ) 可在 GitHub 上找到。
201
+
202
+ Microsoft 维护了一个支持 Linux 和 Windows amd64 的多体系结构镜像: ` mcr.microsoft.com/oss/kubernetes/pause:3.5 ` 。
203
+ 此镜像与 Kubernetes 维护的镜像是从同一来源构建,但所有 Windows 二进制文件
204
+ 均由 Microsoft [ 签名] ( https://docs.microsoft.com/en-us/windows-hardware/drivers/install/authenticode ) 。
205
+ 当生产环境需要被签名的二进制文件时,建议使用 Microsoft 维护的镜像。
194
206
195
207
<!--
196
208
#### Compute
@@ -418,7 +430,7 @@ FlexVolume 插件处理将卷挂接到 Kubernetes 节点或从其上解挂、将
418
430
-->
419
431
##### CSI 插件 {#csi-plugins}
420
432
421
- {{< feature-state for_k8s_version="v1.19 " state="beta " >}}
433
+ {{< feature-state for_k8s_version="v1.22 " state="stable " >}}
422
434
423
435
<!--
424
436
Code associated with {{< glossary_tooltip text="CSI" term_id="csi" >}} plugins
@@ -428,40 +440,34 @@ DaemonSets and StatefulSets. CSI plugins handle a wide range of volume
428
440
management actions in Kubernetes: provisioning/de-provisioning/resizing of
429
441
volumes, attaching/detaching of volumes to/from a Kubernetes node and
430
442
mounting/dismounting a volume to/from individual containers in a pod,
431
- backup/restore of persistent data using snapshots and cloning. CSI plugins
432
- typically consist of node plugins (that run on each node as a DaemonSet) and
433
- controller plugins.
443
+ backup/restore of persistent data using snapshots and cloning.
434
444
-->
435
445
与 {{< glossary_tooltip text="CSI" term_id="csi" >}} 插件相关联的代码作为
436
446
树外脚本和可执行文件来发布且通常发布为容器镜像形式,并使用 DaemonSet 和
437
447
StatefulSet 这类标准的 Kubernetes 构造体来部署。
438
448
CSI 插件处理 Kubernetes 中的很多卷管理操作:对卷的配备、去配和调整大小,
439
449
将卷挂接到 Kubernetes 节点或从节点上解除挂接,将卷挂载到需要持久数据的 Pod
440
450
中的某容器或从容器上卸载,使用快照和克隆来备份或恢复持久数据。
441
- CSI 插件通常包含节点插件(以 DaemonSet 形式运行于各节点上)和控制器插件。
442
-
443
- <!--
444
- CSI node plugins (especially those associated with persistent volumes exposed
445
- as either block devices or over a shared file-system) need to perform various
446
- privileged operations like scanning of disk devices, mounting of file systems,
447
- etc. These operations differ for each host operating system. For Linux worker
448
- nodes, containerized CSI node plugins are typically deployed as privileged
449
- containers. For Windows worker nodes, privileged operations for containerized
450
- CSI node plugins is supported using
451
- [csi-proxy](https://github.com/kubernetes-csi/csi-proxy), a community-managed,
452
- stand-alone binary that needs to be pre-installed on each Windows node. Please
453
- refer to the deployment guide of the CSI plugin you wish to deploy for further
454
- details.
455
- -->
456
- CSI 节点插件(尤其是那些通过块设备或者共享文件系统形式来提供持久卷的插件)
457
- 需要执行很多特权级操作,例如扫描磁盘设备、挂载文件系统等等。
458
- 这些操作在不同的宿主操作系统上差别较大。对于 Linux 工作节点而言,容器化的
459
- CSI 节点插件通常部署为特权级的容器。对于 Windows 工作节点而言,容器化的
460
- CSI 节点插件的特权操作通过
461
- [ csi-proxy] ( https://github.com/kubernetes-csi/csi-proxy )
451
+
452
+ <!--
453
+ CSI plugins communicate with a CSI node plugin which performs the local storage operations.
454
+ On Windows nodes CSI node plugins typically call APIs exposed by the community-managed
455
+ [csi-proxy](https://github.com/kubernetes-csi/csi-proxy) which handles the local storage operations.
456
+
457
+ Please refer to the deployment guide of the environment where you wish to deploy a Windows CSI plugin
458
+ for further details around installation.
459
+ You may also refer to the following [installation steps](https://github.com/kubernetes-csi/csi-proxy#installation).
460
+ -->
462
461
来支持;csi-proxy 是一个社区管理的、独立的可执行文件,需要预安装在每个
463
462
Windows 节点之上。请参考你要部署的 CSI 插件的部署指南以进一步了解其细节。
464
463
464
+ CSI 插件与执行本地存储操作的 CSI 节点插件通信。
465
+ 在 Windows 节点上,CSI 节点插件通常调用处理本地存储操作的 [ csi-proxy] ( https://github.com/kubernetes-csi/csi-proxy )
466
+ 公开的 API, csi-proxy 由社区管理。
467
+
468
+ 有关安装的更多详细信息,请参阅你要部署的 Windows CSI 插件的环境部署指南。
469
+ 你也可以参考以下[ 安装步骤] ( https://github.com/kubernetes-csi/csi-proxy#installation ) 。
470
+
465
471
<!--
466
472
#### Networking
467
473
@@ -1875,10 +1881,8 @@ Kubernetes 中日志是故障排查的一个重要元素。确保你在尝试从
1875
1881
注册 kubelet.exe:
1876
1882
1877
1883
```powershell
1878
- # Microsoft 在 mcr.microsoft.com/oss/kubernetes/pause:3.4.1
1879
- # 发布其基础设施容器镜像
1880
1884
nssm install kubelet C:\k\kubelet.exe
1881
- nssm set kubelet AppParameters --hostname-override=<hostname> --v=6 --pod-infra-container-image=mcr.microsoft.com/oss/kubernetes/ pause:3.4.1 --resolv-conf="" --allow-privileged=true --enable-debugging-handlers --cluster-dns=<DNS-service-IP> --cluster-domain=cluster.local --kubeconfig=c:\k\config --hairpin-mode=promiscuous-bridge --image-pull-progress-deadline=20m --cgroups-per-qos=false --log-dir=<log directory> --logtostderr=false --enforce-node-allocatable="" --network-plugin=cni --cni-bin-dir=c:\k\cni --cni-conf-dir=c:\k\cni\config
1885
+ nssm set kubelet AppParameters --hostname-override=<hostname> --v=6 --pod-infra-container-image=k8s.gcr.io/ pause:3.5 --resolv-conf="" --allow-privileged=true --enable-debugging-handlers --cluster-dns=<DNS-service-IP> --cluster-domain=cluster.local --kubeconfig=c:\k\config --hairpin-mode=promiscuous-bridge --image-pull-progress-deadline=20m --cgroups-per-qos=false --log-dir=<log directory> --logtostderr=false --enforce-node-allocatable="" --network-plugin=cni --cni-bin-dir=c:\k\cni --cni-conf-dir=c:\k\cni\config
1882
1886
nssm set kubelet AppDirectory C:\k
1883
1887
nssm start kubelet
1884
1888
```
@@ -2177,11 +2181,11 @@ Kubernetes 中日志是故障排查的一个重要元素。确保你在尝试从
2177
2181
<!--
2178
2182
* `kubectl port-forward` fails with "unable to do port forwarding: wincat not found"
2179
2183
2180
- This was implemented in Kubernetes 1.15 by including wincat.exe in the pause
2181
- infrastructure container `mcr.microsoft.com/oss/kubernetes/ pause:3.4.1`. Be
2182
- sure to use these versions or newer ones. If you would like to build your
2183
- own pause infrastructure container, be sure to include
2184
- [wincat](https://github.com/kubernetes-sigs/sig-windows-tools /tree/master/cmd /wincat).
2184
+ Port forwarding support for Windows requires wincat.exe to be available in the
2185
+ [pause infrastructure container](# pause-image).
2186
+ Ensure you are using a supported image that is compatable with your Windows OS version.
2187
+ If you would like to build your own pause infrastructure container be sure to include
2188
+ [wincat](https://github.com/kubernetes/kubernetes /tree/master/build/pause/windows /wincat).
2185
2189
-->
2186
2190
* ` kubectl port-forward ` 失败,错误信息为 "unable to do port forwarding: wincat not found"
2187
2191
@@ -2190,6 +2194,10 @@ Kubernetes 中日志是故障排查的一个重要元素。确保你在尝试从
2190
2194
请确保你使用的是这些版本或者更新版本。
2191
2195
如果你想要自行构造你自己的 pause 基础设施容器,要确保其中包含了
2192
2196
[ wincat] ( https://github.com/kubernetes-sigs/sig-windows-tools/tree/master/cmd/wincat )
2197
+
2198
+ Windows 的端口转发支持需要在 [ pause 基础设施容器] ( #pause-image ) 中提供 wincat.exe。
2199
+ 确保你使用的是与你的 Windows 操作系统版本兼容的受支持镜像。
2200
+ 如果你想构建自己的 pause 基础架构容器,请确保包含 [ wincat] ( https://github.com/kubernetes/kubernetes/tree/master/build/pause/windows/wincat ) .。
2193
2201
2194
2202
<!--
2195
2203
* My Kubernetes installation is failing because my Windows Server node is
@@ -2216,10 +2224,8 @@ Kubernetes 中日志是故障排查的一个重要元素。确保你在尝试从
2216
2224
to accommodate worker containers crashing or restarting without losing any of
2217
2225
the networking configuration.
2218
2226
2219
- The "pause" (infrastructure) image is hosted on Microsoft Container Registry
2220
- (MCR). You can access it using `mcr.microsoft.com/oss/kubernetes/pause:3.4.1`.
2221
- For more details, see the
2222
- [DOCKERFILE](https://github.com/kubernetes-sigs/sig-windows-tools/tree/master/cmd/wincat).
2227
+ Refer to the [pause image](#pause-image) section to find the recommended version
2228
+ of the pause image.
2223
2229
-->
2224
2230
* ` pause ` 容器是什么?
2225
2231
@@ -2228,10 +2234,7 @@ Kubernetes 中日志是故障排查的一个重要元素。确保你在尝试从
2228
2234
网络名字空间和端点(相同的 IP 和端口空间)。我们需要 pause 容器来工作容器崩溃或
2229
2235
重启的状况,以确保不会丢失任何网络配置。
2230
2236
2231
- "pause" (基础设施)镜像托管在 Microsoft Container Registry (MCR) 上。
2232
- 你可以使用 ` mcr.microsoft.com/oss/kubernetes/pause:3.4.1 ` 来访问它。
2233
- 要了解进一步的细节,可参阅
2234
- [ DOCKERFILE] ( https://github.com/kubernetes-sigs/sig-windows-tools/tree/master/cmd/wincat ) 。
2237
+ 请参阅 [ pause 镜像] ( #pause-image ) 部分以查找 pause 镜像的推荐版本。
2235
2238
2236
2239
<!--
2237
2240
### Further investigation
0 commit comments