1. 27 Jun, 2017 24 commits
    • 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
    • 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
    • Kubernetes Submit Queue's avatar
      Merge pull request #47894 from xuxinkun/fixclustercentos20170622 · e8701e67
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48092, 47894, 47983)
      
      fix systemd service file for custom args.
      
      `KUBE_SCHEDULER_ARGS` and `KUBELET_ARGS` are used to custom args for scheduler or kubelet by users. 
      But if there are more than one params in `KUBELET_ARGS`, for example, if I set  KUBELET_ARGS="--cgroups-per-qos=false --enforce-node-allocatable=", the kubelet will judge the `false --enforce-node-allocatable=` as the value of `cgroups-per-qos`.  Because `${KUBELET_ARGS}` in kubelet.service will expands the variable into one word. And if I take `$KUBELET_ARGS` instead, kubelet will worker perfectly.
      For more info, please click [EnvironmentFiles and support for /etc/sysconfig files](http://fedoraproject.org/wiki/Packaging:Systemd#EnvironmentFiles_and_support_for_.2Fetc.2Fsysconfig_files). This bug is reported by @huanxingyouyoutoo. And I make this PR for her to fix it.
      
      **Release note**:
      
      ```
      NONE
      ```
      e8701e67
    • Kubernetes Submit Queue's avatar
      Merge pull request #48092 from enisoc/upgrade-skip-dep · eb2c702a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48092, 47894, 47983)
      
      Skip Deployment upgrade test on 1.5 and earlier.
      
      The test relies on implementation details and would need a rewrite to work for older clusters.
      
      xref #47685
      eb2c702a
    • Kubernetes Submit Queue's avatar
      Merge pull request #47242 from k82cn/make_golint_happy · 95be540b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Updated comments for functions.
      95be540b
    • Clayton Coleman's avatar
      Move DaemonSet to table printer · 2f211b88
      Clayton Coleman authored
      2f211b88
    • Kubernetes Submit Queue's avatar
      Merge pull request #47178 from ktsakalozos/bug/worker-labels · 9a4a0cb3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48012, 47443, 47702, 47178)
      
      Fix setting juju worker labels during deployment
      
      **What this PR does / why we need it**: Allows for setting the labels of juju workers during deployment (eg inside a bundle)
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #47176
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      Fix bug in setting Juju kubernetes-worker labels in bundle.yaml files. 
      ```
      9a4a0cb3
    • Kubernetes Submit Queue's avatar
      Merge pull request #47702 from smarterclayton/avoid_mutable · d31bcad4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48012, 47443, 47702, 47178)
      
      Don't bother with a mutable transformer for identity
      
      The default value transformer can safely be the identity transformer - mutability is not required if the caller doesn't need transformation.
      d31bcad4
    • Kubernetes Submit Queue's avatar
      Merge pull request #47443 from p0lyn0mial/use_incluster_cfg_when_creating_ext_informers · aac42add
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48012, 47443, 47702, 47178)
      
      incluster config will be used when creating external shared informers.
      
      **What this PR does / why we need it**:
      Previously the loopback configuration was used to talk to the server.
      As a consequence a custom API server was unable to talk to the root API server.
      This PR changes the above by using incluster configuration to create shared informers.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      aac42add
    • Kubernetes Submit Queue's avatar
      Merge pull request #48012 from verult/FlakyDetachE2E · 1258a7ae
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48012, 47443, 47702, 47178)
      
      Extending timeout waiting for delete node to become ready before the test ends.
      
      **What this PR does / why we need it**: It seems to take longer than 5 minutes for the node to recover. Changing the timeout to 10 minutes.
      This is an extension of PR #46746
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48008 
      
      /release-note-none
      1258a7ae
  2. 26 Jun, 2017 16 commits