mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue (batch tested with PRs 63905, 64855). 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>. Setup dns servers and search domains for Windows Pods **What this PR does / why we need it**: Kubelet is depending on docker container's ResolvConfPath (e.g. /var/lib/docker/containers/439efe31d70fc17485fb6810730679404bb5a6d721b10035c3784157966c7e17/resolv.conf) to setup dns servers and search domains. While this is ok for Linux containers, ResolvConfPath is always an empty string for windows containers. So that the DNS setting for windows containers is always not set. This PR setups DNS for Windows sandboxes. In this way, Windows Pods could also use kubernetes dns policies. **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 #61579 **Special notes for your reviewer**: Requires Docker EE version >= 17.10.0. **Release note**: ```release-note Setup dns servers and search domains for Windows Pods in dockershim. Docker EE version >= 17.10.0 is required for propagating DNS to containers. ``` /cc @PatrickLang @taylorb-microsoft @michmike @JiangtianLi |
||
---|---|---|
.. | ||
apis | ||
cadvisor | ||
certificate | ||
checkpoint | ||
checkpointmanager | ||
client | ||
cm | ||
config | ||
configmap | ||
container | ||
custommetrics | ||
dockershim | ||
envvars | ||
events | ||
eviction | ||
images | ||
kubeletconfig | ||
kuberuntime | ||
leaky | ||
lifecycle | ||
logs | ||
metrics | ||
mountpod | ||
network | ||
pleg | ||
pod | ||
preemption | ||
prober | ||
qos | ||
remote | ||
secret | ||
server | ||
stats | ||
status | ||
sysctl | ||
token | ||
types | ||
util | ||
volumemanager | ||
winstats | ||
BUILD | ||
OWNERS | ||
active_deadline.go | ||
active_deadline_test.go | ||
doc.go | ||
kubelet.go | ||
kubelet_getters.go | ||
kubelet_getters_test.go | ||
kubelet_network.go | ||
kubelet_network_test.go | ||
kubelet_node_status.go | ||
kubelet_node_status_test.go | ||
kubelet_pods.go | ||
kubelet_pods_test.go | ||
kubelet_pods_windows_test.go | ||
kubelet_resources.go | ||
kubelet_resources_test.go | ||
kubelet_test.go | ||
kubelet_volumes.go | ||
kubelet_volumes_test.go | ||
oom_watcher.go | ||
oom_watcher_test.go | ||
pod_container_deletor.go | ||
pod_container_deletor_test.go | ||
pod_workers.go | ||
pod_workers_test.go | ||
reason_cache.go | ||
reason_cache_test.go | ||
runonce.go | ||
runonce_test.go | ||
runtime.go | ||
util.go | ||
volume_host.go |