k3s/pkg/kubelet
Kubernetes Submit Queue af2f72af47
Merge pull request #66587 from feiskyer/revert-63905
Automatic merge from submit-queue (batch tested with PRs 66491, 66587, 66856, 66657, 66923). 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>.

Revert #63905: Setup dns servers and search domains for Windows Pods

**What this PR does / why we need it**:

From https://github.com/kubernetes/kubernetes/pull/63905#issuecomment-396709775:

> I don't think this change does anything on Windows. On windows, the network endpoint configuration is taken care of completely by CNI. If you would like to pass on the custom dns polices from the pod spec, it should be dynamically going to the cni configuration that gets passed to CNI. From there, it would be passed down to platform and would be taken care of appropriately by HNS.

> etc\resolve.conf is very specific to linux and that should remain linux speicfic implementation. We should be trying to move away from platform specific code in Kubelet.
Docker is not managing the networking here for windows. So it doens't really care about any network settings. So passing it to docker shim's hostconfig also doens;t make sense here.

DNS for Windows containers will be set by CNI plugins.  And this change also introduced two endpoints for sandbox container.  So this PR reverts #63905 .


**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 #

**Special notes for your reviewer**:

The PR should also be cherry-picked to release-1.11.

Also, https://github.com/kubernetes/kubernetes/issues/66588 is opened to track the process of pushing this to CNI.

**Release note**:

```release-note
Revert #63905: Setup dns servers and search domains for Windows Pods. DNS for Windows containers will be set by CNI plugins.
```

/sig windows
/sig node
/kind bug
2018-08-14 17:55:07 -07:00
..
apis Merge pull request #66779 from deads2k/api-05-easy-unit 2018-08-02 10:03:16 -07:00
cadvisor Remove --cadvisor-port - has been deprecated since v1.10 2018-07-02 08:54:14 -04:00
certificate Set connrotation dialer via restclient.Config.Dialer 2018-07-25 16:23:57 -07:00
checkpoint Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
checkpointmanager Make 'pod' package to use unified checkpointManager 2018-04-16 01:30:20 -04:00
client Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
cloudresource port setNodeAddress to Setter abstraction, port test 2018-07-16 09:09:47 -07:00
cm Merge pull request #66946 from LinEricYang/unused-variable 2018-08-06 19:44:04 -07:00
config Remove kubelet-level docker shared pid flag 2018-07-22 16:54:44 +02:00
configmap Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
container kubelet: plumb context for log requests 2018-08-10 17:35:46 -07:00
custommetrics Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
dockershim Merge pull request #66587 from feiskyer/revert-63905 2018-08-14 17:55:07 -07:00
envvars Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
events delete unused events 2018-07-17 14:19:50 +08:00
eviction move feature gate checks inside IsCriticalPod 2018-07-11 16:10:05 -05:00
images Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
kubeletconfig Fix test failure of truncated time 2018-06-30 01:14:44 +09:00
kuberuntime kubelet: plumb context for log requests 2018-08-10 17:35:46 -07:00
leaky
lifecycle Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
logs Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
metrics fix metrics help comment 2018-07-13 10:26:35 +09:00
mountpod Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
network Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
nodestatus port setVolumeLimits to Setter abstraction, add test 2018-07-16 09:09:48 -07:00
pleg Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
pod Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
preemption move feature gate checks inside IsCriticalPod 2018-07-11 16:10:05 -05:00
prober Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
qos Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
remote Update to gazelle 0.12.0 and run hack/update-bazel.sh 2018-06-22 16:22:18 -07:00
secret Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
server kubelet: plumb context for log requests 2018-08-10 17:35:46 -07:00
stats Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
status Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
sysctl Run make update 2018-06-06 00:12:40 +02:00
token Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
types move feature gate checks inside IsCriticalPod 2018-07-11 16:10:05 -05:00
util Add unit tests for methods of pod's format 2018-07-17 15:37:13 +08:00
volumemanager kubelet: volumemanager: poll immediate when waiting for volume attachment 2018-08-02 16:41:15 -05:00
winstats Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
BUILD Merge pull request #58755 from vikaschoudhary16/probing-mode 2018-07-27 15:20:06 -07:00
OWNERS
active_deadline.go
active_deadline_test.go
doc.go
kubelet.go Merge pull request #53042 from chentao1596/support-unit-test-case-for-pod-format 2018-08-08 23:49:06 -07:00
kubelet_getters.go Apply pod name and namespace labels for pod cgroup for cadvisor metrics 2018-05-07 14:51:12 -04:00
kubelet_getters_test.go
kubelet_network.go Move hairpin mode logic to dockershim 2018-04-11 09:21:17 -07:00
kubelet_network_test.go Move the kubelet network package down to dockershim 2018-04-11 09:25:56 -07:00
kubelet_node_status.go Merge pull request #66593 from stewart-yu/stewart-kubelet-commentclean 2018-07-27 18:05:00 -07:00
kubelet_node_status_test.go Taint node when initializing node. 2018-07-23 12:52:05 +08:00
kubelet_pods.go kubelet: plumb context for log requests 2018-08-10 17:35:46 -07:00
kubelet_pods_test.go Merge pull request #64006 from Random-Liu/streaming-auth 2018-05-31 22:45:29 -07:00
kubelet_pods_windows_test.go Add dynamic environment variable substitution to subpaths 2018-05-29 17:01:09 +01:00
kubelet_resources.go
kubelet_resources_test.go Cleanup verbose cAdvisor mocking in Kubelet unit tests 2018-06-27 11:53:41 -07:00
kubelet_test.go Taint node when initializing node. 2018-07-23 12:52:05 +08:00
kubelet_volumes.go Fix issue with race condition during pod deletion 2018-03-15 15:35:37 -07:00
kubelet_volumes_test.go Refactor of GenerateMapDeviceFunc to delegate Map call to volume plugin. 2018-06-03 17:25:37 -04:00
oom_watcher.go
oom_watcher_test.go
pod_container_deletor.go kubelet: force filterContainerID to empty string when removeAll is true 2018-04-30 16:29:17 -05:00
pod_container_deletor_test.go
pod_workers.go Fix pod worker deadlock. 2018-07-09 11:45:26 -07:00
pod_workers_test.go
reason_cache.go
reason_cache_test.go
runonce.go fix todo:add function getFailContainer to report which containers failed the pod 2018-03-15 09:38:02 +08:00
runonce_test.go implement service account token projection 2018-06-04 17:22:08 -07:00
runtime.go cleanup some dead kubelet code 2018-05-29 22:38:01 +08:00
util.go
volume_host.go Remove unused io util writer & volume host GetWriter() 2018-07-09 14:09:48 -07:00