1. 28 Jun, 2017 10 commits
    • gmarek's avatar
      Use multiple clients in the density test · b18fd60b
      gmarek authored
      b18fd60b
    • Kubernetes Submit Queue's avatar
      Merge pull request #48050 from luxas/fix_rbac_configmaps · 60895578
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: Expose only the cluster-info ConfigMap in the kube-public ns
      
      **What this PR does / why we need it**:
      
      Noticed a bug; we should only expose the `cluster-info` ConfigMap.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      Fixes: https://github.com/kubernetes/kubeadm/issues/320
      
      **Special notes for your reviewer**:
      
      Cherrypick-candidate for v1.8 cc @dchen1107 
      Not blocking the release though...
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      @jbeda @pipejakob @timothysc @kubernetes/sig-cluster-lifecycle-pr-reviews
      60895578
    • Kubernetes Submit Queue's avatar
      Merge pull request #48079 from alexandercampbell/kubectl-many-small-refactors · 18e8bedb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48123, 48079)
      
      kubectl/cmd: many small refactors
      
      #### Improve Code Quality in `pkg/kubectl/cmd`
      
      ___
      
       * [x] Rename variables and functions to match Go convention. For example, UsageError --> UsageErrorf.
       * [x] Remove redundant or unreachable code.
       * [x] Simplify some utility functions (no functionality changes).
       * [x] Fix hanging 'if { return } else { return }' constructs.
       * [x] Fix several incorrect printf verbs.
      
      These changes were extracted from the refactoring and flag parity work I'm doing in kubectl.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      18e8bedb
    • Kubernetes Submit Queue's avatar
      Merge pull request #48123 from msau42/fix-allocatable-race · 13a7fdc8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48123, 48079)
      
      [Kubelet] Fix race condition in container manager
      
      **What this PR does / why we need it**:
      
      This fixes a race condition where the container manager capacity map was being updated without synchronization.  It moves the storage capacity detection to kubelet initialization, which happens serially in one thread.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48045
      
      **Release note**:
      
      ```release-note
      Fixes kubelet race condition in container manager.
      ```
      13a7fdc8
    • Kubernetes Submit Queue's avatar
      Merge pull request #47549 from yguo0905/change-tested-images · 165c94aa
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Changes node e2e tests to use the new Ubuntu image
      
      ref: https://github.com/kubernetes/kubernetes/issues/46891
      
      `ubuntu-docker10` and `ubuntu-docker12` images are deprecated in favor of the new one.
      
      **Release note**:
      ```
      None
      ```
      /sig node
      /area node-e2e
      /assign @dchen1107
      165c94aa
    • Kubernetes Submit Queue's avatar
      Merge pull request #48159 from zmerlynn/container-vm-v20170627 · 0ce58092
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48118, 48159)
      
      Bump GCE ContainerVM to container-vm-v20170627
      
      Remove the built-in kubelet (finally), pick up security fixes.
      
      ```release-note
      Bump GCE ContainerVM to container-vm-v20170627
      ```
      
      Not really associated issue: #48163
      0ce58092
    • Kubernetes Submit Queue's avatar
      Merge pull request #48118 from verult/FlakyDetachE2E · 89383d27
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48118, 48159)
      
      Ensures node becomes schedulable at the end of tests that delete nodes
      
      **What this PR does / why we need it**: Further fixes the flakiness of "Pod Disk should be able to detach from a node which was deleted". When a node becomes ready but not schedulable, it was not included in the final node count.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48008 
      
      **Special notes for your reviewer**: Updated a similar test, "Pod Disk should be able to detach from a node whose api object was deleted", to use an "Expect" instead of a soft error because the test needs to guarantee that the environment is *completely* reset.
      
      **Release note**:
      
      ```release-note-none
      ```
      89383d27
    • Vishnu kannan's avatar
      Kubelet: · 82f78200
      Vishnu kannan authored
      Centralize Capacity discovery of standard resources in Container manager.
      Have storage derive node capacity from container manager.
      Move certain cAdvisor interfaces to the cAdvisor package in the process.
      
      This patch fixes a bug in container manager where it was writing to a map without synchronization.
      Signed-off-by: 's avatarVishnu kannan <vishnuk@google.com>
      82f78200
    • Kubernetes Submit Queue's avatar
      Merge pull request #47628 from bizhao/e2e · 11b5956f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45610, 47628)
      
      Replace capacity with allocatable to calculate pod resource
      
      It is not accurate to use capacity to do the calculation.
      
      
      
      **What this PR does / why we need it**:
      The currently cpu resource calculation for a pod in end2end test is incorrect.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      fixes #47627
      
      **Special notes for your reviewer**:
      More details about capacity and allocatable:
      https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node-allocatable.md
      
      **Release note**:
      
      NONE
      11b5956f
    • Kubernetes Submit Queue's avatar
      Merge pull request #45610 from bsalamat/priority_api · 82eff38a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45610, 47628)
      
      Add Priority to Kubernetes API
      
      **What this PR does / why we need it**: This is the first in a series of PRs to add priority to Kubernetes API. Subsequent PRs will add priority name resolution to admission controller.
      
      
      **Release note**:
      
      ```release-note
      Add PriorityClassName and Priority fields to PodSpec.
      ```
      82eff38a
  2. 27 Jun, 2017 30 commits
    • Alexander Campbell's avatar
      kubectl/cmd: many small refactors · 6fd36c10
      Alexander Campbell authored
       * Rename variables and functions to match Go convention.
         For example, UsageError --> UsageErrorf.
       * Remove redundant or unreachable code.
       * Simplify some utility functions (no functionality changes).
       * Fix hanging 'if { return } else { return }' constructs.
       * Fix several incorrect printf verbs.
      6fd36c10
    • Zach Loafman's avatar
      Bump GCE ContainerVM to container-vm-v20170627 · 903bc643
      Zach Loafman authored
      Remove the built-in kubelet (finally), pick up security fixes.
      903bc643
    • Kubernetes Submit Queue's avatar
      Merge pull request #48001 from yguo0905/report-prefix · 98ee52ed
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47675, 48001)
      
      Encodes ReportPrefix into the generated metrics file names
      
      Ref: https://github.com/kubernetes/kubernetes/issues/44003
      
      Adds the test prefix to be part of the name. Otherwise the same test case running on different images will override each other. Nothing needs to be changed at the node-perf-dash side.
      
      See test run at https://console.cloud.google.com/storage/browser/ygg-gke-dev-bucket/e2e-node-test/ci-kubernetes-node-kubelet-benchmark/10.
      
      
      **Release note**:
      ```
      None
      ```
      
      /sig node
      /area node-e2e
      /assign @Random-Liu
      98ee52ed
    • Kubernetes Submit Queue's avatar
      Merge pull request #47675 from alexandercampbell/refactor-long-kubectl-function · 850a75fe
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47675, 48001)
      
      cmd/create_deployment: refactor long function
      
      Refactor the `createDeployment` function under `pkg/kubectl/cmd`.
      
      - [x] Behavior has been extracted to two helper functions.
      - [x] Behavior remains identical.
      - [x] Logic has been made explicit through function naming and comments.
      
      This is essentially the pattern I've been following in my larger branches (the ones that are pending the merge of #46468). Want to get some design feedback before I get too far away from `master`.
      
      Thanks!
      
      cc @apelisse @mengqiy @droot 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      850a75fe
    • Kubernetes Submit Queue's avatar
      Merge pull request #46761 from yastij/syncService-remove-copy · c30f5e1d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48106, 46761)
      
      removing unnecessary shallow copy on SyncService
      
      **What this PR does / why we need it**: remove shallow copy + avoid using same index name as the nested loop
      
      **Which issue this PR fixes**: fixes #46703 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      c30f5e1d
    • Kubernetes Submit Queue's avatar
      Merge pull request #48106 from timstclair/audit-metrics · fd884b7e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48106, 46761)
      
      s/count/total/ in audit prometheus metrics
      
      Responding to https://github.com/kubernetes/kubernetes/pull/46732#discussion_r124057806, making the metric names conform with the [metric naming convention](https://prometheus.io/docs/practices/naming/#metric-names).
      
      kubernetes/features#22
      
      /cc @ericchiang @ihmccreery
      fd884b7e
    • Kubernetes Submit Queue's avatar
      Merge pull request #48003 from MrHohn/gce-xlb-cleanup · a7f16b55
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48139, 48042, 47645, 48054, 48003)
      
      Pipe clusterID into gce_loadbalancer_external.go
      
      **What this PR does / why we need it**: Small cleanup for GCE ELB codes.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48002
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      a7f16b55
    • Kubernetes Submit Queue's avatar
      Merge pull request #48054 from juju-solutions/bug/terminate-etcd · 89579c45
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48139, 48042, 47645, 48054, 48003)
      
      Add a failsafe for etcd not returning a connection string
      
      **What this PR does / why we need it**: Removing a kubernetes-master will fail as described on this issue: https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/311
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/311
      
      **Special notes for your reviewer**: This is a two liner defensive code. I am not totally sold on this patch. I might not be the right place to address the above issue. However, solving the problem on the etcd side and updating the interface scope to be unit (as suggested) seems much more involving.
      
      **Release note**:
      
      ```
      Fix error when removing juju kubernetes-master unit
      ```
      89579c45
    • Kubernetes Submit Queue's avatar
      Merge pull request #47645 from jsafrane/integration-test-speedup · d19a2841
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48139, 48042, 47645, 48054, 48003)
      
      Speed up attach/detach controller integration tests
      
      Internal attach/detach controller timers should be configurable and tests should use much shorter values.
      
      `reconcilerSyncDuration` is deliberately left out of `TimerConfig` because it's the only one that's not a constant one, it's configurable by user.
      
      Fixes #47129 
      
      Before:
      ```
      --- PASS: TestPodDeletionWithDswp (63.21s)
      --- PASS: TestPodUpdateWithWithADC (13.68s)
      --- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (13.55s)
      --- PASS: TestPodAddedByDswp (183.01s)
      --- PASS: TestPersistentVolumeRecycler (12.55s)
      --- PASS: TestPersistentVolumeDeleter (12.54s)
      --- PASS: TestPersistentVolumeBindRace (3.51s)
      --- PASS: TestPersistentVolumeClaimLabelSelector (12.50s)
      --- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (12.54s)
      --- PASS: TestPersistentVolumeMultiPVs (3.05s)
      --- PASS: TestPersistentVolumeMultiPVsPVCs (4.36s)
      --- PASS: TestPersistentVolumeControllerStartup (7.29s)
      --- PASS: TestPersistentVolumeProvisionMultiPVCs (5.02s)
      --- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (12.48s)
      ok  	k8s.io/kubernetes/test/integration/volume	359.727s
      ```
      
      After:
      ```
      --- PASS: TestPodDeletionWithDswp (3.71s)
      --- PASS: TestPodUpdateWithWithADC (3.63s)
      --- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (3.70s)
      --- PASS: TestPodAddedByDswp (5.68s)
      --- PASS: TestPersistentVolumeRecycler (12.54s)
      --- PASS: TestPersistentVolumeDeleter (12.55s)
      --- PASS: TestPersistentVolumeBindRace (3.55s)
      --- PASS: TestPersistentVolumeClaimLabelSelector (12.50s)
      --- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (12.52s)
      --- PASS: TestPersistentVolumeMultiPVs (3.98s)
      --- PASS: TestPersistentVolumeMultiPVsPVCs (3.85s)
      --- PASS: TestPersistentVolumeControllerStartup (7.18s)
      --- PASS: TestPersistentVolumeProvisionMultiPVCs (5.23s)
      --- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (12.48s)
      ok  	k8s.io/kubernetes/test/integration/volume	103.267s
      ```
      
      PV controller tests are the slowest ones now.
      
      @kubernetes/sig-storage-pr-reviews 
      /assign @gnufied 
      
      ```release-note
      NONE
      ```
      d19a2841
    • Kubernetes Submit Queue's avatar
      Merge pull request #48042 from luxas/update_kubeadm_deb · 51c43edc
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48139, 48042, 47645, 48054, 48003)
      
      Reflect kubeadm-specific kubelet changes in the bazel debs
      
      **What this PR does / why we need it**:
      
      Sync this file with the one in kubernetes/release
      
      cc @pipejakob @mikedanese @ixdy 
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      Fixes: https://github.com/kubernetes/kubeadm/issues/321
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      51c43edc
    • Kubernetes Submit Queue's avatar
      Merge pull request #48139 from crassirostris/fix-fluentd-config · f1b58f4e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48139, 48042, 47645, 48054, 48003)
      
      Fix fluentd-gcp configuration to facilitate JSON parsing
      
      There's a bug in https://github.com/kubernetes/kubernetes/pull/45734, because of which each records gets additional field and google-cloud plugin thinks it's not JSON (https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/blob/master/lib/fluent/plugin/out_google_cloud.rb#L569)
      
      Fixes https://github.com/kubernetes/kubernetes/issues/48108
      
      /cc @piosz @fgrzadkowski
      f1b58f4e
    • Kubernetes Submit Queue's avatar
      Merge pull request #47352 from p0lyn0mial/wire_admission_to_sample_apiserver · 9120d58f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      shows how to wire admission control in a sample api server.
      
      **What this PR does / why we need it**:
      This PR shows how to wire admission control in a custom api server
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      9120d58f
    • Kubernetes Submit Queue's avatar
      Merge pull request #47513 from gmarek/subnet · ede78d9e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Make big clusters work again after introduction of subnets
      
      This PR does two things: 
        - make IP aliases automatically pick Node IP Range based on number of Nodes,
        - fix logic for starting clusters >4095 Nodes that was broken by introduction of subnets,
      
      cc @wojtek-t @shyamjvs 
      
      ```release-note
      Setting env var ENABLE_BIG_CLUSTER_SUBNETS=true will allow kube-up.sh to start clusters bigger that 4095 Nodes on GCE.
      ```
      
      Ref https://github.com/kubernetes/kubernetes/issues/47344
      ede78d9e
    • Kubernetes Submit Queue's avatar
      Merge pull request #47847 from chuckbutler/cluster-juju-approvers · d65b87a0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Insert Cynerva and Kjackal to approvers list
      
      **What this PR does / why we need it**:
      Per the membership reviews, we're looking to promote Konstantinos and
      George to approvers to help distribute the review/bug load for the `cluster/juju` code
      tree.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: 
      
      **Special notes for your reviewer**:
      cc @marcoceppi and @tvansteenburgh 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      d65b87a0
    • Kubernetes Submit Queue's avatar
      Merge pull request #47105 from feiskyer/cleanup · 0d84a4fe
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47038, 47105)
      
      kuberuntime: cleanup TestGenerateContainerConfig
      
      Followup of #47009, cleanup TestGenerateContainerConfig and remove unused expectedConfig.
      
      /assign @yujuhong
      0d84a4fe
    • Kubernetes Submit Queue's avatar
      Merge pull request #47038 from yastij/DefaultExternalHost-for-registredCP · 6acfb0f8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47038, 47105)
      
      extending DefaultExternalHost for any registred cloud provider
      
      **What this PR does / why we need it**: this PR enables DefaultExternalHost to work with any registered cloud provider.
      
      **Which issue this PR fixes** : fixes #46567 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      When determining the default external host of the kube apiserver, any configured cloud provider is now consulted
      ```
      6acfb0f8
    • Mik Vyatskov's avatar
      b6a0e442
    • Kubernetes Submit Queue's avatar
      Merge pull request #47731 from jsravn/use-endpoints-cache-for-endpoint-controller · 6d1da164
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Use endpoints informer for the endpoint controller
      
      This substantially reduces the number of API calls made by the endpoint
      controller. Currently the controller makes an API call per endpoint for
      each service that is synced. When the 30s resync is triggered, this
      results in an API call for every single endpoint in the cluster. This
      quickly exceeds the default qps/burst limit of 20/30 even in small
      clusters, leading to delays in endpoint updates.
      
      This change modifies the controller to use the endpoint informer cache
      for all endpoint GETs. This means we only make API calls for changes in
      endpoints. As a result, qps only depends on the pod activity in the
      cluster, rather than the number of services.
      
      
      
      **What this PR does / why we need it**:
      
      Address endpoint update delays as described in https://github.com/kubernetes/kubernetes/issues/47597.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      https://github.com/kubernetes/kubernetes/issues/47597
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      6d1da164
    • Marcin Wielgus's avatar
      Merge pull request #48132 from MaciekPytel/cluster_autoscaler_node_balance_2 · 53ac0284
      Marcin Wielgus authored
      Fix typo in cluster-autoscaler config
      53ac0284
    • Maciej Pytel's avatar
      Fix typo in cluster-autoscaler config · 04f7a963
      Maciej Pytel authored
      04f7a963
    • Kubernetes Submit Queue's avatar
      Merge pull request #48049 from luxas/kubeadm_rolling_proxy · 49c151e4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: Make kube-proxy RollingUpgradeable
      
      **What this PR does / why we need it**:
      Sets the right updateStrategy for kube-proxy.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      Fixes: https://github.com/kubernetes/kubeadm/issues/319
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      @pipejakob @timothysc @kubernetes/sig-cluster-lifecycle-pr-reviews
      49c151e4
    • Kubernetes Submit Queue's avatar
      Merge pull request #48072 from MaciekPytel/ca_scale_to_0_e2e · 0e509854
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add e2e for cluster-autoscaler scale-up from 0
      
      Ref: https://github.com/kubernetes/autoscaler/issues/43
      0e509854
    • Marcin Wielgus's avatar
      Merge pull request #48129 from MaciekPytel/cluster_autoscaler_node_balance · 71744551
      Marcin Wielgus authored
      Set cluster-autoscaler node balancing flag
      71744551
    • Maciej Pytel's avatar
      Set cluster-autoscaler node balancing flag · b11175f7
      Maciej Pytel authored
      b11175f7
    • James Ravn's avatar
      Use endpoints informer for the endpoint controller · 9fc5a547
      James Ravn authored
      This substantially reduces the number of API calls made by the endpoint
      controller. Currently the controller makes an API call per endpoint for
      each service that is synced. When the 30s resync is triggered, this
      results in an API call for every single endpoint in the cluster. This
      quickly exceeds the default qps/burst limit of 20/30 even in small
      clusters, leading to delays in endpoint updates.
      
      This change modifies the controller to use the endpoint informer cache
      for all endpoint GETs. This means we only make API calls for changes in
      endpoints. As a result, qps only depends on the pod activity in the
      cluster, rather than the number of services.
      9fc5a547
    • Kubernetes Submit Queue's avatar
      Merge pull request #47052 from gyliu513/godoc · f39c1712
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      godoc update for scheduler predicates.
      
      **What this PR does / why we need it**:
      This is a follow up PR for https://github.com/kubernetes/kubernetes/pull/46621 
      
      /cc @timothysc 
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      none
      ```
      f39c1712
    • Kubernetes Submit Queue's avatar
      Merge pull request #48034 from smarterclayton/more_printers_2 · eead1729
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47484, 47904, 48034)
      
      Add a DaemonSet table printer
      
      Only the last commit is new
      eead1729
    • Kubernetes Submit Queue's avatar
      Merge pull request #47904 from deads2k/log-01-supress · 353633b8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47484, 47904, 48034)
      
      prioritize messages for long steps
      
      This pull prioritizes the trace messages, so steps that are unusually large come out at the info level and all details come out a v(4) level.
      353633b8
    • Kubernetes Submit Queue's avatar
      Merge pull request #47484 from allencloud/fix-nit-in-kubelet-server · cf15b173
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47484, 47904, 48034)
      
      fix nits in kubelet server
      Signed-off-by: 's avatarallencloud <allen.sun@daocloud.io>
      
      **What this PR does / why we need it**:
      fix nits in kubelet server
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      NONE
      
      **Special notes for your reviewer**:
      NONE
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      cf15b173
    • Kubernetes Submit Queue's avatar
      Merge pull request #47983 from yguo0905/memcg · 0dad2d08
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48092, 47894, 47983)
      
      Enables memcg notification in cluster/node e2e tests
      
      Ref: https://github.com/kubernetes/kubernetes/issues/42676
      
      This PR sets Kubelet flag `--experimental-kernel-memcg-notification=true` when running cluster/node e2e tests on COS and Ubuntu images.
      
      Tested:
      ```
      e2e-node-cos:
      I0623 00:09:06.641776    1080 server.go:147] Starting server "kubelet" with command "/usr/bin/systemd-run --unit=kubelet-777178888.service --slice=runtime.slice --remain-after-exit /tmp/node-e2e-20170622T170739/kubelet --kubelet-cgroups=/kubelet.slice --cgroup-root=/ --api-servers http://localhost:8080 --address 0.0.0.0 --port 10250 --read-only-port 10255 --volume-stats-agg-period 10s --allow-privileged true --serialize-image-pulls false --pod-manifest-path /tmp/node-e2e-20170622T170739/pod-manifest571288056 --file-check-frequency 10s --pod-cidr 10.100.0.0/24 --eviction-pressure-transition-period 30s --feature-gates  --eviction-hard memory.available<250Mi,nodefs.available<10%%,nodefs.inodesFree<5%% --eviction-minimum-reclaim nodefs.available=5%%,nodefs.inodesFree=5%% --v 4 --logtostderr --network-plugin=kubenet --cni-bin-dir /tmp/node-e2e-20170622T170739/cni/bin --cni-conf-dir /tmp/node-e2e-20170622T170739/cni/net.d --hostname-override tmp-node-e2e-bfe5799d-cos-stable-59-9460-64-0 --experimental-mounter-path=/tmp/node-e2e-20170622T170739/cluster/gce/gci/mounter/mounter --experimental-kernel-memcg-notification=true"
      
      e2e-node-ubuntu:
      I0623 00:03:28.526984    2279 server.go:147] Starting server "kubelet" with command "/usr/bin/systemd-run --unit=kubelet-1407651753.service --slice=runtime.slice --remain-after-exit /tmp/node-e2e-20170622T170203/kubelet --kubelet-cgroups=/kubelet.slice --cgroup-root=/ --api-servers http://localhost:8080 --address 0.0.0.0 --port 10250 --read-only-port 10255 --volume-stats-agg-period 10s --allow-privileged true --serialize-image-pulls false --pod-manifest-path /tmp/node-e2e-20170622T170203/pod-manifest083943734 --file-check-frequency 10s --pod-cidr 10.100.0.0/24 --eviction-pressure-transition-period 30s --feature-gates  --eviction-hard memory.available<250Mi,nodefs.available<10%%,nodefs.inodesFree<5%% --eviction-minimum-reclaim nodefs.available=5%%,nodefs.inodesFree=5%% --v 4 --logtostderr --network-plugin=kubenet --cni-bin-dir /tmp/node-e2e-20170622T170203/cni/bin --cni-conf-dir /tmp/node-e2e-20170622T170203/cni/net.d --hostname-override tmp-node-e2e-e48cdd73-ubuntu-gke-1604-xenial-v20170420-1 --experimental-kernel-memcg-notification=true"
      
      e2e-node-containervm:
      I0623 00:14:35.392383    2774 server.go:147] Starting server "kubelet" with command "/tmp/node-e2e-20170622T171318/kubelet --runtime-cgroups=/docker-daemon --kubelet-cgroups=/kubelet --cgroup-root=/ --system-cgroups=/system --api-servers http://localhost:8080 --address 0.0.0.0 --port 10250 --read-only-port 10255 --volume-stats-agg-period 10s --allow-privileged true --serialize-image-pulls false --pod-manifest-path /tmp/node-e2e-20170622T171318/pod-manifest507536807 --file-check-frequency 10s --pod-cidr 10.100.0.0/24 --eviction-pressure-transition-period 30s --feature-gates  --eviction-hard memory.available<250Mi,nodefs.available<10%,nodefs.inodesFree<5% --eviction-minimum-reclaim nodefs.available=5%,nodefs.inodesFree=5% --v 4 --logtostderr --network-plugin=kubenet --cni-bin-dir /tmp/node-e2e-20170622T171318/cni/bin --cni-conf-dir /tmp/node-e2e-20170622T171318/cni/net.d --hostname-override tmp-node-e2e-9e3fdd7c-e2e-node-containervm-v20161208-image"
      
      e2e-cos:
      Jun 23 17:54:38 e2e-test-ygg-minion-group-t5r0 kubelet[2005]: I0623 17:54:38.646374    2005 flags.go:52] FLAG: --experimental-kernel-memcg-notification="true"
      
      e2e-ubuntu:
      Jun 23 18:25:27 e2e-test-ygg-minion-group-19qp kubelet[1547]: I0623 18:25:27.722253    1547 flags.go:52] FLAG: --experimental-kernel-memcg-notification="true"
      
      e2e-containervm:
      I0623 18:55:51.886632    3385 flags.go:52] FLAG: --experimental-kernel-memcg-notification="false"
      ```
      
      **Release note**:
      ```
      None
      ```
      
      /sig node
      /area node-e2e
      /assign @dchen1107 @dashpole
      0dad2d08