- 13 Feb, 2018 1 commit
-
-
Lantao Liu authored
Signed-off-by:Lantao Liu <lantaol@google.com>
-
- 30 Jan, 2018 33 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 59053, 59005). 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>. Forcing get_node_name to continue searching for a node name. There was a race condition where the kubelet was restarting and we were querying the api server for this node. In that case, we may get a valid list of nodes that doesn't include our node. This would cause the code to just raise an exception. Now we wait the full timeout before raising the exception. **What this PR does / why we need it**: Fixes a race condition on the get_node_name function inside the kubernetes-worker charm. **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**: **Release note**: ```release-note Fixed a race condition inside kubernetes-worker that would result in a temporary error situation. ```
-
Kubernetes Submit Queue authored
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>. Reset DeferredDiscoveryRESTMapper before use DeferredDiscoveryRESTMapper won't automatically `Reset` itself before its initial use, since actually trying to construct the delegate will error out before it gets a chance to `Reset` itself. Ergo, we have to manually call `Reset` before use. Fixes #59043 ```release-note NONE ```
-
Kubernetes Submit Queue authored
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>. Make eviction manager work with CRI container runtime. Previously, eviction manager uses a function `HasDedicatedImageFs` in `pkg/kubelet/cadvisor` to detect whether image fs and root fs are on the same device. However, it doesn't work with CRI container runtime which provides container/image stats through CRI. Thus all eviction tests for containerd are failing now. https://k8s-testgrid.appspot.com/sig-node-containerd#node-e2e-flaky This PR makes it work with CRI container runtime. @kubernetes/sig-node-pr-reviews @yujuhong @yguo0905 @feiskyer @mrunalp @abhi @dashpole Signed-off-by:
Lantao Liu <lantaol@google.com> **What this PR does / why we need it**: **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**: **Release note**: ```release-note none ```
-
Kubernetes Submit Queue authored
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>. [GCE] Set --kubelet-preferred-address-types on apiserver by default **What this PR does / why we need it**: We currently set the default value of `PreferredAddressTypes` in `KubeletConfig` for apiserver as below: https://github.com/kubernetes/kubernetes/blob/2f403b7ad18a179514f1de77e29f1a2549ef030a/cmd/kube-apiserver/app/options/options.go#L99-L110 It denotes the ways (order matters) we prefer to use for kubelet connections, in which `NodeHostName` is listed as the most preferred one. However, it is not safe to assume `NodeHostName` will always be resolvable. This PR makes `InternalIP` as the most preferred one instead. Note that this doesn't affect how the ssh tunnel is setup, which is configured explicitly elsewhere: https://github.com/kubernetes/kubernetes/blob/d0d1e1dcc473d75c5dae6d4710ac67f4f8ba44c6/pkg/master/master.go#L442-L445 https://github.com/kubernetes/kubernetes/blob/d0d1e1dcc473d75c5dae6d4710ac67f4f8ba44c6/pkg/master/master.go#L388-L389 **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 #NONE **Special notes for your reviewer**: /assign @bowei @cjcullen cc @dnardo in case I made terrible mistakes. **Release note**: ```release-note NONE ```
-
Lantao Liu authored
Signed-off-by:Lantao Liu <lantaol@google.com>
-
Kubernetes Submit Queue authored
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>. kube-apiserver flag --admision-control is deprecated, use the new --e… …nable-admission-plugins **What this PR does / why we need it**: 1. As #58123 mark kube-apiserver flag `admission-control` deprecated, replace it in some places. **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**: **Release note**: ```release-note NONE ``` /assign @liggitt @deads2k @sttts
-
Solly Ross authored
DeferredDiscoveryRESTMapper won't automatically `Reset` itself before its initial use, since actually trying to construct the delegate will error out before it gets a chance to `Reset` itself. Ergo, we have to manually call `Reset` before use.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 58914, 58933). 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>. The TODO has been completed, so remove the comments The TODO has been completed in [PR](https://github.com/kubernetes/kubernetes/commit/eeb582e53f76aee9b70a051e1fe0199e8f572bae#diff-0b1de4365e4b0b50a13f26ff0718342b) so remove the comments.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 58914, 58933). 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>. fix GetCustomResourceListerCollectionDeleter comments **What this PR does / why we need it**: fix https://github.com/kubernetes/kubernetes/pull/58688#discussion_r163865115 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
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>. code cleanup in integration test framework **What this PR does / why we need it**: code cleanup **Special notes for your reviewer**: /kind cleanup **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
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>. fix mistaken info print **What this PR does / why we need it**: fix mistaken info print **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**: **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
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>. deprecate insecure http flags and remove already deprecated flags **What this PR does / why we need it**: 1. deprecate `insecure-bind-address` `insecure-port` flags 2. remove flags `public-address-override` `address` `port` They are mark deprecated in #36604, which is more than a year ago. **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 #58951 **Special notes for your reviewer**: **Release note**: ```release-note Deprecate insecure flags `--insecure-bind-address`, `--insecure-port` and remove `--public-address-override`. ```
-
Kubernetes Submit Queue authored
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>. use glog.info instead of glog.infof when no format **What this PR does / why we need it**: use glog.info instead of glog.infof when no format **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**: **Release note**: ```release-note ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 59012, 58871). 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>. Support GetLabelsForVolume In OpenStack **What this PR does / why we need it**: Since PersistentVolumeLabelController will invoke ```GetLabelsForVolume``` interface in Cloud-Controller-Manager, OpenStack Provider should support it. https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/cloud.go#L213 **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 #58870 **Special notes for your reviewer**: **Release note**: ```release-note Support GetLabelsForVolume in OpenStack Provider ```
-
hzxuzhonghu authored
-
Kubernetes Submit Queue authored
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>. Build using go1.9.3 **What this PR does / why we need it**: more minor bugfixes, which I guess we probably want. https://github.com/golang/go/issues?q=milestone%3AGo1.9.3 **Special notes for your reviewer**: I haven't built/pushed the crossbuild image yet, but will do so if we think this is a good idea. I don't have plans to rebuild the test images. **Release note**: ```release-note Build using go1.9.3. ``` Who are good people to review this? /assign @cblecker @luxas (for lack of better ideas)
-
zhangxiaoyu-zidif authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 57322, 57723, 58706, 59004, 58857). 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 more tests for Azure cloud provider. <eom>
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 57322, 57723, 58706, 59004, 58857). 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>. Skip rescheduler test. Skip the rescheduler test per discussion https://github.com/kubernetes/kubernetes/issues/59002. The test `[sig-scheduling] Rescheduler [Serial] should ensure that critical pod is scheduled in case there is no resources available` has failing for a long time. And the serial suite is never green because of it. https://k8s-testgrid.appspot.com/google-gce#gci-gce-serial @kubernetes/sig-scheduling-misc Signed-off-by:
Lantao Liu <lantaol@google.com> **What this PR does / why we need it**: **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**: **Release note**: ```release-note none ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 57322, 57723, 58706, 59004, 58857). 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>. Adding downgrade test for ingress-gce **What this PR does / why we need it**: This PR improves the existing downgrade e2e test for ingress-gce. Specifically, we add a test which downgrades ingress from an image built from HEAD to the latest release image. ```release-note None ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 57322, 57723, 58706, 59004, 58857). 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>. Make the pause image a manifest list **What this PR does / why we need it**: Build and push manifest for kubernetes images **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 https://github.com/kubernetes/kubernetes/issues/57869 **Special notes for your reviewer**: **Release note**: ``` NONE ```
-
Kubernetes Submit Queue authored
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>. Use GetDryRunFlag to keep consistent **What this PR does / why we need it**: There's a cmd util GetDryRunFlag, but we still get 'dry-run' directly somewhere. This PR makes them consistent. **Release note**: ```release-note NONE ```
-
Zihong Zheng authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 57467, 58996). 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>. Set generate-kubelet-config-file to true by default. This should fix the flaky suite. https://k8s-testgrid.appspot.com/sig-node-kubelet#kubelet-flaky-gce-e2e @mtaufen /cc @kubernetes/sig-node-bugs Signed-off-by:
Lantao Liu <lantaol@google.com> **What this PR does / why we need it**: **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**: **Release note**: ```release-note none ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 57467, 58996). 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>. Remove flaky label from Eviction tests **What this PR does / why we need it**: All eviction tests in the flaky suite are no longer flaky. Remove the flaky label to move them from the flaky suite to the serial suite. I removed the QoS-based memory eviction test since it does not reflect the current eviction strategy. **Release note**: ```release-note NONE ``` /assign @mtaufen @Random-Liu /sig node /priority important-soon /kind cleanup
-
Jeff Grafton authored
-
Jeff Grafton authored
-
edisonxiang authored
-
Lantao Liu authored
Signed-off-by:Lantao Liu <lantaol@google.com>
-
Mike Wilson authored
Forcing get_node_name to continue searching for a node name if the returned list of nodes doesn't include this one. There was a race condition where the kubelet was restarting and we were querying the api server for this node.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 58899, 58980). 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>. Fix setting qps in density test. Current QPS setting code doesn't work. All the density tests with higher QPS are failing. https://k8s-testgrid.appspot.com/sig-node-kubelet#kubelet-benchmark-gce-e2e We should use existing helper function `tempSetCurrentKubeletConfig` to set QPS. @kubernetes/sig-node-bugs @mtaufen **Release note**: ```release-note none ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 58899, 58980). 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>. CRI: Add a call to reopen log file for a container This allows a daemon external to the container runtime to rotate the log file, and then ask the runtime to reopen the files. **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 #58823 **Release note**: ```release-note CRI: Add a call to reopen log file for a container. ```
-
Lantao Liu authored
Signed-off-by:Lantao Liu <lantaol@google.com>
-
- 29 Jan, 2018 6 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 58777, 58978, 58977, 58775). 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>. fix url parsing for staging/dev endpoint ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 58777, 58978, 58977, 58775). 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>. Fix pod sandbox privilege. Fixes https://github.com/kubernetes/kubernetes/issues/58979. In cri-containerd, we start enforcing that a privileged container can't be created in privileged sandbox in https://github.com/containerd/cri-containerd/pull/577. However, after that the e2e-gci-device-plugin-gpu test starts failing. https://k8s-testgrid.appspot.com/sig-node-containerd#e2e-gci-device-plugin-gpu ``` I0128 06:49:09.117] Jan 28 06:49:09.086: INFO: At 2018-01-28 06:41:10 +0000 UTC - event for nvidia-driver-installer-5kkrz: {kubelet bootstrap-e2e-minion-group-7s2v} Failed: (combined from similar events): Error: failed to generate container "cfb9f4f01fc2685db6469d3f6348077b94d4aa577e2e6345bf890f8871ec80dd" spec: no privileged container allowed in sandbox ``` The reason is that kubelet doesn't check init container when setting sandbox privilege. Signed-off-by:
Lantao Liu <lantaol@google.com> **Release note**: ```release-note none. ``` @kubernetes/sig-node-bugs @yujuhong @feiskyer @mrunalp
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 58777, 58978, 58977, 58775). 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>. Removal of KubeletConfigFile feature gate: Step 3 (final) This PR completes the work started in https://github.com/kubernetes/kubernetes/pull/58760 by completely removing the KubeletConfigFile feature gate. We stopped setting the gate in test-infra in https://github.com/kubernetes/test-infra/pull/6490. ```release-note The alpha KubeletConfigFile feature gate has been removed, because it was redundant with the Kubelet's --config flag. It is no longer necessary to set this gate to use the flag. The --config flag is still considered alpha. ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 58777, 58978, 58977, 58775). 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>. Skip NoNewPrivileges test when SELinux is enabled **What this PR does / why we need it**: A bug in the SELinux policy prevented NoNewPrivileges from working on Docker with SELinux support enabled. The problem has been fixed upstream (see projectatomic/container-selinux#45) But hasn't been backported yet (a fix might come in RHEL 7.5) For now, let's skip the NoNewPrivileges test when SELinux support is enabled in Docker. Tested: - Before this commit, the test fails: ``` $ make test-e2e-node REMOTE=true FOCUS="allow privilege escalation" (on a host with SELinux enabled) • [SLOW TEST:22.798 seconds] (passed) [k8s.io] Security Context when creating containers with AllowPrivilegeEscalation should allow privilege escalation when true • Failure [16.539 seconds] [k8s.io] Security Context when creating containers with AllowPrivilegeEscalation should not allow privilege escalation when false [It] wait for pod "alpine-nnp-false-aef03e47-0090-11e8-886f-42010af00009" to success Expected success, but got an error: <*errors.errorString | 0xc4204e26d0>: { s: "pod \"alpine-nnp-false-aef03e47-0090-11e8-886f-42010af00009\" failed with reason: \"\", message: \"\"", } pod "alpine-nnp-false-aef03e47-0090-11e8-886f-42010af00009" failed with reason: "", message: "" • [SLOW TEST:26.572 seconds] (passed) [k8s.io] Security Context when creating containers with AllowPrivilegeEscalation should allow privilege escalation when not explicitly set and uid != 0 Ran 3 of 257 Specs in 45.364 seconds FAIL! -- 2 Passed | 1 Failed | 0 Pending | 254 Skipped Ginkgo ran 1 suite in 49.389123442s Test Suite Failed ``` - After this commit, the test is skipped: ``` $ make test-e2e-node REMOTE=true FOCUS="allow privilege escalation" (on a host with SELinux enabled) S [SKIPPING] in Spec Setup (BeforeEach) [12.452 seconds] S [SKIPPING] in Spec Setup (BeforeEach) [16.298 seconds] S [SKIPPING] in Spec Setup (BeforeEach) [18.183 seconds] Ran 0 of 257 Specs in 39.174 seconds SUCCESS! -- 0 Passed | 0 Failed | 0 Pending | 257 Skipped Ginkgo ran 1 suite in 43.570630357s Test Suite Passed ``` - No changes when SELinux is disabled: ``` $ make test-e2e-node REMOTE=true FOCUS="allow privilege escalation" (on a host with SELinux disabled) • [SLOW TEST:15.013 seconds] [k8s.io] Security Context when creating containers with AllowPrivilegeEscalation should not allow privilege escalation when false • [SLOW TEST:19.155 seconds] [k8s.io] Security Context when creating containers with AllowPrivilegeEscalation should allow privilege escalation when true • [SLOW TEST:21.087 seconds] [k8s.io] Security Context when creating containers with AllowPrivilegeEscalation should allow privilege escalation when not explicitly set and uid != 0 Ran 3 of 259 Specs in 38.560 seconds SUCCESS! -- 3 Passed | 0 Failed | 0 Pending | 256 Skipped Ginkgo ran 1 suite in 41.937918928s Test Suite Passed ``` **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: N/A **Special notes for your reviewer**: N/A **Release note**: ```release-note NONE ```
-
Yu-Ju Hong authored
This allows a daemon external to the container runtime to rotate the log file, and then ask the runtime to reopen the files.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 58955, 58968, 58971, 58963, 58298). 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>. removes the remainder from ScalerFor method **What this PR does / why we need it**: this PR removes existing scalers from `ScalerFor` method **Release note**: ```release-note NONE ```
-