-
Notifications
You must be signed in to change notification settings - Fork 39.7k
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 Container Runtime Interface (CRI) doesn't support WindowsContainerConfig and WindowsContainerResources #56734
Comments
/sig windows |
+1 for the feature. Some questions
kubernetes/pkg/kubelet/apis/cri/v1alpha1/runtime/api.proto Lines 455 to 474 in 8c1ee76
cc/ @brendanburns @dchen1107 @yujuhong @kubernetes/sig-node-feature-requests |
cc Windows container core (@jhowardmsft; @darrenstahlmsft; @jstarks; @PatrickLang)
|
Going forward, I think we need Windows config in CRI to be container runtime agnostic. I am trying to find spec from OCI eventually, not from docker's config in https://github.com/moby/moby/blob/master/api/types/container/host_config.go. Is https://github.com/opencontainers/runtime-spec/blob/master/specs-go/config.go something we could refer to? |
a) Is this a bug or a feature? b) if it's a feature, please add it to feature tracking. c) also, please add a priority/ label |
Feature issue is here: kubernetes/enhancements#547 |
Changed this issue from bug to feature. |
Thanks! |
Automatic merge from submit-queue (batch tested with PRs 59097, 57076, 59295). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add windows config to Kubelet CRI **What this PR does / why we need it**: Currently Container Runtime Interface (CRI) only supports LinuxContainerConfig and therefore LinuxContainerResources in ContainerConfig. Windows resource config is different from Linux's, although it shares some common properties. This PR adds windows config to CRI. Add newly added WindowsContainerResources is original from OCI spec (see https://github.com/opencontainers/runtime-spec/blob/master/specs-go/config.go#L437). **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: First part of #56734. A further PR is needed to fill the values after we have agreement on the spec. **Special notes for your reviewer**: **Release note**: ```release-note Add windows config to Kubelet CRI ``` /assign @yujuhong @brendandburns /cc @taylorb-microsoft @JiangtianLi @dchen1107
Please add status/approved-for-milestone if this feature is staying in 1.10 Thanks! |
/status approved-for-milestone |
You must be a member of the kubernetes/kubernetes-milestone-maintainers github team to add status labels. |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. kubelet: setup WindowsContainerResources for windows containers **What this PR does / why we need it**: This PR setups WindowsContainerResources for windows containers. It implements proposal here: kubernetes/community#1510. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #56734 **Special notes for your reviewer**: **Release note**: ```release-note WindowsContainerResources is set now for windows containers ```
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
What happened:
Currently Container Runtime Interface (CRI) only supports LinuxContainerConfig and therefore LinuxContainerResources in ContainerConfig. Windows resource config is different from Linux's, although it shares some common properties. For example, docker's resource config for both platforms: https://github.com/moby/moby/blob/master/api/types/container/host_config.go#L308-L344. The resource controls for Windows containers is documented at: https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/resource-controls.
What you expected to happen:
Since LinuxContainerConfig is configuration specific to Linux containers, ideally there is WindowsContainerConfig for configuration specific to Windows containers, so that container runtime can take that config and pass to Windows containers. For example,
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):uname -a
):The text was updated successfully, but these errors were encountered: