Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Kubernetes should get correct Pause image based on windows build number #80032
What would you like to be added:
Kubernetes on windows uses the "mcr.microsoft.com/k8s/core/pause:1.0.0" image as pause image. This is based on nanoserver:1809, so running k8s on Server 1903 will fail every workload with a strange error message about container OS version mismatch.
The obvious solution seems to me to build several versions of the pause image with every supported version of Nanoserver as the base (1803, 1809, 1903), and then tag them accordingly, and use the right one when starting k8s. So instead of using "mcr.microsoft.com/k8s/core/pause:1.0.0" use "mcr.microsoft.com/k8s/core/pause:1809" or "mcr.microsoft.com/k8s/core/pause:1903"
Why is this needed: