1. 04 Mar, 2017 21 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #42480 from kargakis/update-log-verbosity-deployments · ccaa1cc6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42456, 42457, 42414, 42480, 42370)
      
      controller: reduce log verbosity for deployments
      
      Fixes https://github.com/kubernetes/kubernetes/issues/41187
      
      Labeling as a bug fix since I think excessive logging should be considered as a bug.
      
      @kubernetes/sig-apps-bugs
      ccaa1cc6
    • Kubernetes Submit Queue's avatar
      Merge pull request #42414 from lukaszo/ds-taint · 204ffda1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42456, 42457, 42414, 42480, 42370)
      
      Enque DaemonSet sync when node taints changed
      
      Fixes #42398
      
       @kargakis @janetkuo @mdshuai PTAL
      204ffda1
    • Kubernetes Submit Queue's avatar
      Merge pull request #42457 from yujuhong/do_not_panic · cb0728c5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42456, 42457, 42414, 42480, 42370)
      
      node e2e: apparmor test should fail instead of panicking
      
      This doesn't fix #42420, but at least stop the test from panicking.
      cb0728c5
    • Kubernetes Submit Queue's avatar
      Merge pull request #42456 from Random-Liu/update-npd-in-kubemark · c6d9d9c5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42456, 42457, 42414, 42480, 42370)
      
      Update npd in kubemark since #42201 is merged.
      
      Revert https://github.com/kubernetes/kubernetes/pull/41716.
      
      #42201 has been merged, and #41713 is fixed. Now we could retry update npd in kubemark.
      
      /cc @shyamjvs @wojtek-t @dchen1107
      c6d9d9c5
    • Kubernetes Submit Queue's avatar
      Merge pull request #42455 from gmarek/kubemark-logs · a56bba26
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42369, 42375, 42397, 42435, 42455)
      
      Add alsologtostderr flag to hollow node
      
      @yujuhong @wojtek-t that should solve the kubemark log issue.
      a56bba26
    • Kubernetes Submit Queue's avatar
      Merge pull request #42435 from dashpole/timestamps_for_fsstats · f9ccee77
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42369, 42375, 42397, 42435, 42455)
      
      [Bug Fix]: Avoid evicting more pods than necessary by adding Timestamps for fsstats and ignoring stale stats
      
      Continuation of #33121.  Credit for most of this goes to @sjenning.  I added volume fs timestamps.
      
      **why is this a bug** 
      This PR attempts to fix part of https://github.com/kubernetes/kubernetes/issues/31362 which results in multiple pods getting evicted unnecessarily whenever the node runs into resource pressure. This PR reduces the chances of such disruptions by avoiding reacting to old/stale metrics.
      Without this PR, kubernetes nodes under resource pressure will cause unnecessary disruptions to user workloads. 
      This PR will also help deflake a node e2e test suite.
      
      The eviction manager currently avoids evicting pods if metrics are old.  However, timestamp data is not available for filesystem data, and this causes lots of extra evictions.
      See the [inode eviction test flakes](https://k8s-testgrid.appspot.com/google-node#kubelet-flaky-gce-e2e) for examples.
      This should probably be treated as a bugfix, as it should help mitigate extra evictions.
      
      cc: @kubernetes/sig-storage-pr-reviews  @kubernetes/sig-node-pr-reviews @vishh @derekwaynecarr @sjenning
      f9ccee77
    • Kubernetes Submit Queue's avatar
      Merge pull request #42397 from feiskyer/fix-42396 · 51a3d7b6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42369, 42375, 42397, 42435, 42455)
      
      Kubelet: return container runtime's version instead of CRI's one
      
      **What this PR does / why we need it**:
      
      With CRI enabled by default, kubelet reports the version of CRI instead of container runtime version. This PR fixes this problem.
      
      **Which issue this PR fixes** 
      
      Fixes #42396.
      
      **Special notes for your reviewer**:
      
      Should also cherry-pick to 1.6 branch.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      cc @yujuhong  @kubernetes/sig-node-bugs
      51a3d7b6
    • Kubernetes Submit Queue's avatar
      Merge pull request #42375 from nikhiljindal/controllerRequiredResources · 6675dada
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42369, 42375, 42397, 42435, 42455)
      
      Fixing federation controllers to support controllers flag
      
      Fixes https://github.com/kubernetes/kubernetes/issues/42374
      
      cc @kubernetes/sig-federation-pr-reviews
      6675dada
    • Kubernetes Submit Queue's avatar
      Merge pull request #42369 from smarterclayton/get_warning · db4fbf59
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Output of `kubectl get` is inconsistent for pods
      
      Builds on top of fixes from #42283, only the last two commits are new. Reverts behavior of #39042 which was inconsistent and confusing.
      
      Fixes #15853
      db4fbf59
    • Kubernetes Submit Queue's avatar
      Merge pull request #42300 from caesarxuchao/fix-client-verify · 93a3efd8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      ignore base.go in client-verify
      
      We need to cherry-pick it to 1.6 to fix #42290.
      93a3efd8
    • Kubernetes Submit Queue's avatar
      Merge pull request #42204 from dashpole/allocatable_eviction · 2d319bd4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Eviction Manager Enforces Allocatable Thresholds
      
      This PR modifies the eviction manager to enforce node allocatable thresholds for memory as described in kubernetes/community#348.
      This PR should be merged after #41234. 
      
      cc @kubernetes/sig-node-pr-reviews @kubernetes/sig-node-feature-requests @vishh 
      
      ** Why is this a bug/regression**
      
      Kubelet uses `oom_score_adj` to enforce QoS policies. But the `oom_score_adj` is based on overall memory requested, which means that a Burstable pod that requested a lot of memory can lead to OOM kills for Guaranteed pods, which violates QoS. Even worse, we have observed system daemons like kubelet or kube-proxy being killed by the OOM killer.
      Without this PR, v1.6 will have node stability issues and regressions in an existing GA feature `out of Resource` handling.
      2d319bd4
    • Kubernetes Submit Queue's avatar
      Merge pull request #42310 from liggitt/init-container-default · 99445553
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42443, 38924, 42367, 42391, 42310)
      
      Apply custom defaults to init containers
      
      Adds overridden defaults to init containers. They were not being defaulted the same way normal containers were.
      99445553
    • Kubernetes Submit Queue's avatar
      Merge pull request #42391 from liggitt/patch-output · b33d0fb3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42443, 38924, 42367, 42391, 42310)
      
      Fix 'not patched' kubectl error
      
      fixes #42384
      b33d0fb3
    • Kubernetes Submit Queue's avatar
      Merge pull request #42367 from kow3ns/ss-flakes · f750721b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42443, 38924, 42367, 42391, 42310)
      
      Fix StatefulSet e2e flake
      
      **What this PR does / why we need it**:
      Fixes StatefulSet e2e flake by ensuring that the StatefulSet controller has observed the unreadiness of Pods prior to attempting to exercise scale functionality.
      **Which issue this PR fixes** 
      fixes #41889
      ```release-note
      NONE
      ```
      f750721b
    • Kubernetes Submit Queue's avatar
      Merge pull request #38924 from vladimirvivien/scaleio-k8s · f81a0107
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42443, 38924, 42367, 42391, 42310)
      
      Dell EMC ScaleIO Volume Plugin
      
      **What this PR does / why we need it**
      This PR implements the Kubernetes volume plugin to allow pods to seamlessly access and use data stored on ScaleIO volumes.  [ScaleIO](https://www.emc.com/storage/scaleio/index.htm) is a software-based storage platform that creates a pool of distributed block storage using locally attached disks on every server.  The code for this PR supports persistent volumes using PVs, PVCs, and dynamic provisioning.
      
      You can find examples of how to use and configure the ScaleIO Kubernetes volume plugin in [examples/volumes/scaleio/README.md](examples/volumes/scaleio/README.md).
      
      **Special notes for your reviewer**:
      To facilitate code review, commits for source code implementation are separated from other artifacts such as generated, docs, and vendored sources.
      
      ```release-note
      ScaleIO Kubernetes Volume Plugin added enabling pods to seamlessly access and use data stored on ScaleIO volumes.
      ```
      f81a0107
    • Kubernetes Submit Queue's avatar
      Merge pull request #42443 from Random-Liu/fix-node-e2e-npd · 67500b39
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42443, 38924, 42367, 42391, 42310)
      
      Cast system uptime to time.Duration to fix cross build.
      
      Fixes https://github.com/kubernetes/kubernetes/issues/42441.
      
      Cast system uptime to `time.Duration` to avoid different behavior on different architectures.
      
      @sjenning @ixdy @ncdc
      67500b39
    • Kubernetes Submit Queue's avatar
      Merge pull request #42285 from liggitt/get-watch · f7c07a12
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41919, 41149, 42350, 42351, 42285)
      
      Fix error printing objects from kubectl get -w
      
      Fixes #42276
      f7c07a12
    • Kubernetes Submit Queue's avatar
      Merge pull request #42351 from liggitt/scheduler-statefulset · 346c0ba9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41919, 41149, 42350, 42351, 42285)
      
      Add read permissions for statefulsets for kube-scheduler
      
      https://github.com/kubernetes/kubernetes/issues/41708 added statefulset awareness to the scheduler. This adds the corresponding permission to the scheduler role.
      346c0ba9
    • Kubernetes Submit Queue's avatar
      Merge pull request #42350 from vishh/enable-qos-cgroups · b432e137
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41919, 41149, 42350, 42351, 42285)
      
      enable cgroups tiers and node allocatable enforcement on pods by default.
      
      ```release-note
      Pods are launched in a separate cgroup hierarchy than system services.
      ```
      Depends on #41753
      
      cc @derekwaynecarr
      b432e137
    • Kubernetes Submit Queue's avatar
      Merge pull request #41149 from sjenning/qos-memory-limits · 9cc54809
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41919, 41149, 42350, 42351, 42285)
      
      kubelet: enable qos-level memory limits
      
      ```release-note
      Experimental support to reserve a pod's memory request from being utilized by pods in lower QoS tiers.
      ```
      
      Enables the QoS-level memory cgroup limits described in https://github.com/kubernetes/community/pull/314
      
      **Note: QoS level cgroups have to be enabled for any of this to take effect.**
      
      Adds a new `--experimental-qos-reserved` flag that can be used to set the percentage of a resource to be reserved at the QoS level for pod resource requests.
      
      For example, `--experimental-qos-reserved="memory=50%`, means that if a Guaranteed pod sets a memory request of 2Gi, the Burstable and BestEffort QoS memory cgroups will have their `memory.limit_in_bytes` set to `NodeAllocatable - (2Gi*50%)` to reserve 50% of the guaranteed pod's request from being used by the lower QoS tiers.
      
      If a Burstable pod sets a request, its reserve will be deducted from the BestEffort memory limit.
      
      The result is that:
      - Guaranteed limit matches root cgroup at is not set by this code
      - Burstable limit is `NodeAllocatable - Guaranteed reserve`
      - BestEffort limit is `NodeAllocatable - Guaranteed reserve - Burstable reserve`
      
      The only resource currently supported is `memory`; however, the code is generic enough that other resources can be added in the future.
      
      @derekwaynecarr @vishh
      9cc54809
    • Kubernetes Submit Queue's avatar
      Merge pull request #41919 from Cynerva/gkk/kubelet-auth · 5b8d600d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41919, 41149, 42350, 42351, 42285)
      
      Juju: Disable anonymous auth on kubelet
      
      **What this PR does / why we need it**:
      
      This disables anonymous authentication on kubelet when deployed via Juju.
      
      I've also adjusted a few other TLS options for kubelet and kube-apiserver. The end result is that:
      1. kube-apiserver can now authenticate with kubelet
      2. kube-apiserver now verifies the integrity of kubelet
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*:
      
      https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/219
      
      **Special notes for your reviewer**:
      
      This is dependent on PR #41251, where the tactics changes are being merged in separately.
      
      Some useful pages from the documentation:
      * [apiserver -> kubelet](https://kubernetes.io/docs/admin/master-node-communication/#apiserver---kubelet)
      * [Kubelet authentication/authorization](https://kubernetes.io/docs/admin/kubelet-authentication-authorization/)
      
      **Release note**:
      
      ```release-note
      Juju: Disable anonymous auth on kubelet
      ```
      5b8d600d
  2. 03 Mar, 2017 19 commits