Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes should get correct Pause image based on windows build number #80032

Open
jwlogemann opened this issue Jul 11, 2019 · 2 comments

Comments

3 participants
@jwlogemann
Copy link

commented Jul 11, 2019

What would you like to be added:
K8s uses a pause images for infrastructure reasons. On Windows this image must match the kernel version of the host operating system, or trying to run pods will fail with the fairly vague error message "Container OS version must match the host OS version".

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:
This will make running k8s on windows a lot more user friendly, by removing difficult to debug default behaviour.

/sig windows

@jwlogemann

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

/sig windows

@michmike

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

our goal is to build additional images for all the operating systems we support. today, we only support 1809 which is why that's the only image available. we also revamped the image to a new version to include new capabilities like port-forward

@PatrickLang PatrickLang added this to Backlog in SIG-Windows Jul 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.