1. 28 Jul, 2016 28 commits
  2. 27 Jul, 2016 12 commits
    • k8s-merge-robot's avatar
      Merge pull request #29388 from ronnielai/image-gc-check · ab7d039c
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Avoiding trying to gc images with no tags which are still in use
      
      #29325
      ab7d039c
    • k8s-merge-robot's avatar
      Merge pull request #29356 from smarterclayton/init_containers · 3301f6d1
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      LimitRanger and PodSecurityPolicy need to check more on init containers
      
      Container limits not applied to init containers. HostPorts not checked on podsecuritypolicy
      
      @pweil- @derekwaynecarr
      3301f6d1
    • k8s-merge-robot's avatar
      Merge pull request #29693 from bprashanth/healthz_limits · 78f7b32e
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Give healthz more memory to mitigate #29688
      
      This will recreate the rc but not the pods. At least on the clusters we patched, if the pods get recreated they'll ccome back up with the updated limits. 
      #29688
      78f7b32e
    • Paul Morie's avatar
      Add e2e coverage for mount collisions · f15684e0
      Paul Morie authored
      f15684e0
    • Paul Morie's avatar
      Fix collisions issues / timeouts for mounts · c8842979
      Paul Morie authored
      For non-attachable volumes, do not call GetVolumeName on the plugin and instead
      generate a unique name based on the identity of the pod and the name of the volume
      within the pod.
      c8842979
    • k8s-merge-robot's avatar
      Merge pull request #29641 from ivan4th/fix-configmap-race · e86b3f26
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Fix wrapped volume race
      
      **EDIT:** now covers configmap, secret, downwardapi & git_repo volume plugins.
      
      Fixes #29297.
      
      wrappedVolumeSpec used by configMapVolumeMounter and
      configMapVolumeUnmounter contained a pointer to api.Volume which was
      being patched by NewWrapperMounter/NewWrapperUnmounter, causing race
      condition during configmap volume mounts.
      
      See https://github.com/kubernetes/kubernetes/issues/29297#issuecomment-235403806 for complete explanation.
      The subtle bug was introduced by #18445, it also can affect other volume plugins utilizing `wrappedVolumeSpec` technique, if this PR is correct/accepted will make more PRs for secrets etc. Although tmpfs variety of inner `emptyDir` volume appears to be less susceptible to this race, there's chance it can fail too.
      
      The errors produced by this race look like this:
      ```Jul 19 17:05:21 ubuntu1604 kubelet[17097]: I0719 17:05:21.854303   17097 reconciler.go:253] MountVolume operation started for volume "kubernetes.io/configmap/foo-files"
       (spec.Name: "files") to pod "11786582-4dbf-11e6-9fc9-64cca009c636" (UID: "11786582-4dbf-11e6-9fc9-64cca009c636").
      Jul 19 17:05:21 ubuntu1604 kubelet[17097]: I0719 17:05:21.854842   17097 reconciler.go:253] MountVolume operation started for volume "kubernetes.io/configmap/bar-file
      s" (spec.Name: "files") to pod "117d2c22-4dbf-11e6-9fc9-64cca009c636" (UID: "117d2c22-4dbf-11e6-9fc9-64cca009c636").
      Jul 19 17:05:21 ubuntu1604 kubelet[17097]: E0719 17:05:21.860796   17097 configmap.go:171] Error creating atomic writer: stat /var/lib/kubelet/pods/117d2c22-4dbf-11e6-9fc9-64cca009c636/volumes/kubernetes.io~configmap/files: no such file or directory
      Jul 19 17:05:21 ubuntu1604 kubelet[17097]: E0719 17:05:21.861070   17097 goroutinemap.go:155] Operation for "kubernetes.io/configmap/bar-files" failed. No retries permitted until 2016-07-19 17:07:21.861036886 +0200 CEST (durationBeforeRetry 2m0s). error: MountVolume.SetUp failed for volume "kubernetes.io/configmap/bar-files" (spec.Name: "files") pod "117d2c22-4dbf-11e6-9fc9-64cca009c636" (UID: "117d2c22-4dbf-11e6-9fc9-64cca009c636") with: stat /var/lib/kubelet/pods/117d2c22-4dbf-11e6-9fc9-64cca009c636/volumes/kubernetes.io~configmap/files: no such file or directory
      Jul 19 17:05:21 ubuntu1604 kubelet[17097]: E0719 17:05:21.861271   17097 configmap.go:171] Error creating atomic writer: stat /var/lib/kubelet/pods/11786582-4dbf-11e6-9fc9-64cca009c636/volumes/kubernetes.io~configmap/files: no such file or directory
      Jul 19 17:05:21 ubuntu1604 kubelet[17097]: E0719 17:05:21.862284   17097 goroutinemap.go:155] Operation for "kubernetes.io/configmap/foo-files" failed. No retries permitted until 2016-07-19 17:07:21.862275753 +0200 CEST (durationBeforeRetry 2m0s). error: MountVolume.SetUp failed for volume "kubernetes.io/configmap/foo-files" (spec.Name: "files") pod "11786582-4dbf-11e6-9fc9-64cca009c636" (UID: "11786582-4dbf-11e6-9fc9-64cca009c636") with: stat /var/lib/kubelet/pods/11786582-4dbf-11e6-9fc9-64cca009c636/volumes/kubernetes.io~configmap/files: no such file or directory```
      
      Note "Error creating atomic writer" errors.
      This problem can be reproduced by making kubelet mount multiple config map volumes in parallel.
      e86b3f26
    • Clayton Coleman's avatar
      Init container quota is inaccurate · 958d78cb
      Clayton Coleman authored
      Usage charged should be max of greater of init container or all regular
      containers. Also, need to validate init container inputs
      958d78cb
    • Prashanth Balasubramanian's avatar
      79d7519f
    • Daniel Smith's avatar
      Merge pull request #29697 from kubernetes/revert-29284-hamaster-etcd · 617b614e
      Daniel Smith authored
      Revert "Modified etcd manifest to support clustering."
      617b614e
    • Daniel Smith's avatar
      fb3f02fb
    • Dawn Chen's avatar
      Merge pull request #29687 from cjcullen/customuser · 1aaea5fe
      Dawn Chen authored
      Fix potential unbound KUBE_USER variable in gci/trusty.
      1aaea5fe
    • CJ Cullen's avatar
      6d2c4117