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
Windows containers do not have entries in the hosts file #70189
Comments
This requires single-file mapping, which won't work in Windows Server version 1803. It should be possible with Windows Server 2019 along with ContainerD |
Will it work with Docker on Windows Server 2019? |
Not in 18.09 or earlier. I'm not sure what release it will be in because it will require migrating to containerd. |
@PatrickLang should this issue be tracked for 1.13 in addition to #65016? If so please apply the appropriate priority and milestone labels please. |
This one needs to be in v1.14. We need to get cri-containerd working first to fix this. |
Thanks |
By default, hosts file are not being used in Windows, it is all registry based. What features is this blocking? CC @madhanrm |
The hosts file entries are still taken into account on Windows when it has to resolve a DNS name. This is blocking DNS conformance tests, like |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen |
Hello! |
No. It is meant to be fixed in the next release, when the Containerd support will be introduced. |
/milestone v1.15 |
@marosset: The provided milestone is not valid for this repository. Milestones in this repository: [ Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
@marosset: The provided milestone is not valid for this repository. Milestones in this repository: [ Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/milestone v1.20 |
@marosset yes it is expected be part of August Windows release |
Hey 👋 Bug Triage here. Wanted to follow up on the status of this issue as we're approaching code freeze on 12.11.2020. This issue is tagged for 1.20, is it still planned for this release? |
@bai - Yes, we'd like to make it into 1.20. |
/remove-lifecycle frozen |
/priority important-soon |
I believe the work involved here is to
|
/milestone v1.21 Moving to 1.21 since the required OS fixes were not available in time to implement this functionality in v1.20 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Hello! I am from the Bug Triage team! This issue has not been updated for a long time, so I'd like to check on the status. The code freeze is starting March 9th, 2021 (about 1 week from now). We want to ensure that each PR has a chance to be merged before code freeze. As the Issue is tagged for 1.21, is it still planned for this release? |
Can this be reopened? From a related problem I have experienced using HostAlias for Windows pod deployments, this issue does not seem to be resolved. Instead, it looks as if it was closed by accident because the conversation went cold. |
Hello. What Kubernetes version are you running? Also, on the Windows nodes, do you use docker, or containerd? This is only supported on Windows nodes with containerd, since it supports single file mapping, which is required in order to mount single files into Windows containers. |
We have experimented with both 1.22.11 and a 1.23 release and yea, the container runtime is containerd. Any other ideas to check up on? |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
/sig windows
What happened:
When deploying Kubernetes pods, the Linux containers will contain the following entries in the
/etc/hosts
file:However, these are not set on Windows containers; the container's
C:\Windows\System32\drivers\etc\hosts
file does not contain any entry. This can be attributed to the fact that individual files cannot be mounted on Windows containers the same way they are on Linux containers.It can be fixed with a change to the kubelet once Windows Server 2019 has shipped, and once CRI-ContainerD is enabled on Windows. We cannot fix it for Windows Server 1803 or earlier with dockershim.
What you expected to happen:
The
:\Windows\System32\drivers\etc\hosts
file should be managed and populated by Kubelet.How to reproduce it (as minimally and precisely as possible):
Spawn a Windows pod, and check its container's
:\Windows\System32\drivers\etc\hosts
file.Compare the result with a Linux pod's container's
/etc/hosts
file.Anything else we need to know?:
Environment:
kubectl version
): 1.12The text was updated successfully, but these errors were encountered: