Skip to content

Commit 2a42dd4

Browse files
marossetjsturtevantTim Bannister
authored
Clarifying gcr vs mcr pause image usage for Windows (#29063)
* Clarifying gcr vs mcr pause iamge usage for Windows Signed-off-by: Mark Rossetti <[email protected]> * updating more pause image references * Link to pause image section instead of duplicating container image multiple places * Update content/en/docs/setup/production-environment/windows/intro-windows-in-kubernetes.md Co-authored-by: James Sturtevant <[email protected]> * update link to wincat source * Removing here link * end of file blank line * specify pause image v3.5 is for v1.22 * Update content/en/docs/setup/production-environment/windows/intro-windows-in-kubernetes.md Co-authored-by: Tim Bannister <[email protected]> * Update content/en/docs/setup/production-environment/windows/intro-windows-in-kubernetes.md Co-authored-by: Tim Bannister <[email protected]> * removing v1.15 reference from docs * Update content/en/docs/setup/production-environment/windows/intro-windows-in-kubernetes.md Co-authored-by: James Sturtevant <[email protected]> * Update content/en/docs/setup/production-environment/windows/intro-windows-in-kubernetes.md Co-authored-by: James Sturtevant <[email protected]> Co-authored-by: James Sturtevant <[email protected]> Co-authored-by: Tim Bannister <[email protected]>
1 parent 6399fb6 commit 2a42dd4

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

content/en/docs/setup/production-environment/windows/intro-windows-in-kubernetes.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@ limitation and compatibility rules will change.
9999

100100
#### Pause Image
101101

102-
Microsoft maintains a Windows pause infrastructure container at
103-
`mcr.microsoft.com/oss/kubernetes/pause:3.4.1`.
104-
Kubernetes maintains a multi-architecture image `k8s.gcr.io/pause:3.5` that
105-
supports Linux as well as Windows.
102+
Kubernetes maintains a multi-architecture image that includes support for Windows.
103+
For Kubernetes v1.22 the recommended pause image is `k8s.gcr.io/pause:3.5`.
104+
The [source code](https://github.com/kubernetes/kubernetes/tree/master/build/pause)
105+
is available on GitHub.
106+
107+
Microsoft maintains a multi-architecture image with Linux and Windows amd64 support at `mcr.microsoft.com/oss/kubernetes/pause:3.5`.
108+
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.
109+
The Microsoft maintained image is recommended for production environments when signed binaries are required.
106110

107111
#### Compute
108112

@@ -1063,9 +1067,8 @@ contributors. Follow the instructions in the SIG-Windows
10631067
Register kubelet.exe:
10641068
10651069
```powershell
1066-
# Microsoft releases the pause infrastructure container at mcr.microsoft.com/oss/kubernetes/pause:3.4.1
10671070
nssm install kubelet C:\k\kubelet.exe
1068-
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
1071+
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
10691072
nssm set kubelet AppDirectory C:\k
10701073
nssm start kubelet
10711074
```
@@ -1234,11 +1237,11 @@ contributors. Follow the instructions in the SIG-Windows
12341237

12351238
* `kubectl port-forward` fails with "unable to do port forwarding: wincat not found"
12361239

1237-
This was implemented in Kubernetes 1.15 by including wincat.exe in the
1238-
pause infrastructure container `mcr.microsoft.com/oss/kubernetes/pause:3.4.1`.
1239-
Be sure to use these versions or newer ones. If you would like to build your
1240-
own pause infrastructure container be sure to include
1241-
[wincat](https://github.com/kubernetes-sigs/sig-windows-tools/tree/master/cmd/wincat).
1240+
Port forwarding support for Windows requires wincat.exe to be available in the
1241+
[pause infrastructure container](#pause-image).
1242+
Ensure you are using a supported image that is compatable with your Windows OS version.
1243+
If you would like to build your own pause infrastructure container be sure to include
1244+
[wincat](https://github.com/kubernetes/kubernetes/tree/master/build/pause/windows/wincat).
12421245

12431246
* My Kubernetes installation is failing because my Windows Server node is
12441247
behind a proxy
@@ -1260,10 +1263,8 @@ contributors. Follow the instructions in the SIG-Windows
12601263
to accommodate worker containers crashing or restarting without losing any of
12611264
the networking configuration.
12621265

1263-
The "pause" (infrastructure) image is hosted on Microsoft Container Registry
1264-
(MCR). You can access it using `mcr.microsoft.com/oss/kubernetes/pause:3.4.1`.
1265-
For more details, see the
1266-
[DOCKERFILE](https://github.com/kubernetes-sigs/windows-testing/blob/master/images/pause/Dockerfile).
1266+
Refer to the [pause image](#pause-image) section to find the recommended version
1267+
of the pause image.
12671268

12681269
### Further investigation
12691270

@@ -1332,4 +1333,3 @@ guide is available
13321333
[here](/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes/). We are
13331334
also making investments in cluster API to ensure Windows nodes are properly
13341335
provisioned.
1335-

0 commit comments

Comments
 (0)